Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PF next UXDev Meetup
Search
Andres Galante
March 26, 2018
0
110
PF next UXDev Meetup
Andres Galante
March 26, 2018
Tweet
Share
More Decks by Andres Galante
See All by Andres Galante
Make Something Great! Become an Open Source Contributor
andresgalante
0
200
Make Something Great: Become an Open Source Contributor
andresgalante
0
290
How to use CSS to make your App look amazing and be accessible on any device
andresgalante
0
61
Open source - JUG BA
andresgalante
0
65
Open source - QCon19
andresgalante
0
97
CSS - Media queries o tamanho não importa
andresgalante
0
78
Cosmos
andresgalante
0
100
PatternFly 4 variable system
andresgalante
0
100
Open source
andresgalante
3
82
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
97
6.3k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Invisible Side of Design
smashingmag
302
51k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
190
55k
KATA
mclloyd
PRO
32
15k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
940
GitHub's CSS Performance
jonrohan
1032
470k
Building an army of robots
kneath
306
46k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Transcript
None
PATTERNFLY’S HISTORY 1
2012 PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1 Red Hat UIs Looked “different”
“We always do ugly things... always…” Bruno Souza, Java Champion
PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1 Paul
https://www.nngroup.com/articles/top-10-mistakes-web-design/ “...when things always behave the same, users don't have
to worry about what will happen. Instead, they know what will happen based on earlier experiences” Jakob Nielsen PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1
“If you give a mockup to 10 developers you’ll get
10 different results and none of them will look like the original mockup” Paul, fearless UXD supreme leader PATTERNFLY’S HISTORY 1
BOOTSTRAP PATTERNFLY’S HISTORY 1
= + ❤ PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1 August 22nd, 2013 First Commit
PATTERNFLY’S HISTORY 1 May 15th, 2014 First Release v1.0
PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1
2015 PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1
2016 PATTERNFLY’S HISTORY 1
“This PatternFly thing might actually work…” Paul’s thought in 2016
PATTERNFLY’S HISTORY 1
CSS is like a bear cub. Cute and inoffensive but
as he grows, he'll eat you alive. PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1
PATTERNFLY’S HISTORY 1
PATTERNFLY 3 PATTERNFLY’S HISTORY 1
None
2018 PATTERNFLY’S HISTORY 1
None
“I made a list of what was wrong on PatternFly.
PatternFly Next solves everything.” Matt Nolting, Insights team PATTERNFLY’S HISTORY 1
PATTERNFLY NEXT 2
NO BOOTSTRAP! PATTERNFLY NEXT 2
“I’m not one to say Bootstrap doesn’t have its place
in the world, it’s great for MVPs and startups. But when you have your own system, you need to be your own thing and stop leaning on the training wheels of Bootstrap” Kendall Totten, RH com lead PATTERNFLY NEXT 2
MAINTAINABILITY PATTERNFLY NEXT 2 Isolation and Modularity
PATTERNFLY NEXT 2 Let each thing be a thing
PATTERNFLY NEXT 2 Let’s first talk about HTML
PATTERNFLY NEXT 2 Components, Layouts, and Patterns. (and Demos)
PATTERNFLY NEXT 2 Layouts Layouts are the containers that allow
for organizing and grouping its immediate children on the page. pf-l-gallery
PATTERNFLY NEXT 2 Components Components are modular and independent structures
concerned with how a thing looks. pf-c-box
PATTERNFLY NEXT 2 Patterns A pattern is structure that is
made of more than one component. pf-p-name
PATTERNFLY NEXT 2 … and Demos
PATTERNFLY NEXT 2 BE and M pf-c-box pf-c-box__header pf-is-danger
PATTERNFLY NEXT 2 Let each thing be a thing
Create a modifier only if it changes state, scale, or
color PATTERNFLY NEXT 2 Look! Oxford commas .pf-c-box .pf-is-danger .pf-is-sm .pf-is-expanded
UI Structures Components Layouts PATTERNFLY NEXT 2
Components Layouts # PATTERNFLY NEXT 2
Components Layouts $ PATTERNFLY NEXT 2
PATTERNFLY NEXT 2 DEMO
Now let’s talk about PATTERNFLY NEXT 2 CSS
PATTERNFLY NEXT 2 Variables Global vs Component variables https://css-tricks.com/theming-with-variables-globals-and-locals/
Global and component variables, when combined, can be super powerful,
make CSS more maintainable, and even collaborative. Geoff Graham PATTERNFLY NEXT 2
PATTERNFLY NEXT 2 Global variables global variables keep consistency across
components --pf-global--concept--modifier--state--PropertyCamelCase
PATTERNFLY NEXT 2
PATTERNFLY NEXT 2 Component variables component variables are scoped to
theme-able component properties --pf-c-block__element--modifier--state--PropertyCamelCase
PATTERNFLY NEXT 2
PATTERNFLY NEXT 2 —pf-c-box--PaddingTop —pf-c-button--PaddingTop —pf-c-alert--PaddingTop —pf-c-box--primary--Color —pf-c-button--primary--Color —pf-c-alert--primary--Color —pf-global--spacer--md
—pf-global--primary--color Global Component
PATTERNFLY NEXT 2
PATTERNFLY NEXT 2 —pf-c-box--PaddingTop —pf-c-button--PaddingTop —pf-c-alert--PaddingTop —pf-c-box--primary--Color —pf-c-button--primary--Color —pf-c-alert--primary--Color —pf-global--spacer--md
—pf-global--primary--color Global Component
PATTERNFLY NEXT 2
PATTERNFLY NEXT 2 —pf-c-box--PaddingTop —pf-c-button--PaddingTop —pf-c-alert--PaddingTop —pf-c-box--primary--Color —pf-c-button--primary--Color —pf-c-alert--primary--Color —pf-global--spacer--md
—pf-global--primary--color Global Component
Sass nesting PATTERNFLY NEXT 2 To create BEM entities. Always
keep specificity to the minimum.
PATTERNFLY NEXT 2 DEMO
Documentation driven development PATTERNFLY NEXT 2 If it’s not documented
it doesn’t exists
LIQUID CAT Responsive Accessible Documented PATTERNFLY NEXT 2
PATTERNFLY NEXT 2 Freedom! You can do whatever you want,
as long as you follow the rules.
PATTERNFLY NEXT 2 seriously… follow the rules! SERIUSLY…
PATTERNFLY NEXT 2 A good design system empowers designers to
code, and developers to design.
YOU CSS UI PATTERNFLY NEXT 2
YOU CSS UI PATTERNFLY NEXT 2
PATTERNFLY NEXT 2 Systems are built to change!
PATTERNFLY NEXT 2 What do you think?
LET’S SEE IT IN ACTION 3
None
Header Main Sidbar
Header Header
Context Selector Brand Secondary Nav Toolbar Toolbar Toolbar Toolbar Toolbar
Page Header Toolbar
List List item List item List item List header List
body
split main split secondary Toolbar
Main Nav