Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
PatternFly 4 variable system
Search
Andres Galante
September 25, 2018
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PatternFly 4 variable system
Andres Galante
September 25, 2018
Transcript
42 slides
None
PATTERNFLY’S VARIABLE SYSTEM
PATTERNFLY 3 1
PatternFly Users 1 PATTERNFLY 3 1
None
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 3 1
PatternFly Contributors 2 Developers Designers PATTERNFLY 3 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, UXD supreme leader PATTERNFLY 3 1
PATTERNFLY 4 VARIABLES 2
BUMPERS! PATTERNFLY 4 VARIABLES 2
Patternfly 4 Variables Global vs Component variables https://css-tricks.com/theming-with-variables-globals-and-locals/ PATTERNFLY 4
VARIABLES 2
Global and component variables, when combined, can be super powerful,
make CSS more maintainable, and even collaborative. Geoff Graham PATTERNFLY 4 VARIABLES 2
Global variables global variables keep consistency across components PATTERNFLY 4
VARIABLES 2
Global variables Typography Borders Breakpoints Colors Spaces Shadows PATTERNFLY 4
VARIABLES 2
None
Component variables component variables are scoped to theme-able component properties
PATTERNFLY 4 VARIABLES 2
Comment This is a an example of a title Here
goes some body text that the component might have Home Dashboard Reports Users Help Logout Navigation
Global variable link color: #007bba PATTERNFLY 4 VARIABLES 2
None
None
Comment This is a an example of a title Here
goes some body text that the component might have Home Dashboard Reports Users Help Logout Navigation
Global link color = BLUE Navigation link color = Global
link color Comment link color = Global link color PATTERNFLY 4 VARIABLES 2
Navigation color Commment color Global link color PATTERNFLY 4 VARIABLES
2
Global link color = YELLOW Navigation link color = Global
link color Comment link color = Global link color PATTERNFLY 4 VARIABLES 2
PATTERNFLY 4 VARIABLES 2 Navigation color Commment color Global link
color
Comment This is a an example of a title Here
goes some body text that the component might have Home Dashboard Reports Users Help Logout Navigation
Global link color = YELLOW Navigation link color = Global
link color Comment link color = RED PATTERNFLY 4 VARIABLES 2
Navigation color Commment color PATTERNFLY 4 VARIABLES 2 Global link
color
Comment This is a an example of a title Here
goes some body text that the component might have Home Dashboard Reports Users Help Logout Navigation
None
None
None
None
None
None
Global spacer xl = 32px Modal Box padding = Global
spacer xl PATTERNFLY 4 VARIABLES 2
Global spacer xl 32px PATTERNFLY 4 VARIABLES 2 Modal padding
top Global spacer xl
Global spacer md = 16px Modal Box padding = Global
spacer md PATTERNFLY 4 VARIABLES 2 Global spacer xl = 32px
PATTERNFLY 4 VARIABLES 2 Global spacer md 16px Modal padding
top Global spacer md Global spacer xl 32px
Sharing components between Red Hat’s design systems PATTERNFLY 4 VARIABLES
2
A good design system empowers designers to code, and developers
to design. PATTERNFLY 4 VARIABLES 2
Thanks!
More Decks by Andres Galante
See All by Andres Galante
Make Something Great! Become an Open Source Contributor
andresgalante
0
230
Make Something Great: Become an Open Source Contributor
andresgalante
0
310
How to use CSS to make your App look amazing and be accessible on any device
andresgalante
0
92
Open source - JUG BA
andresgalante
0
88
Open source - QCon19
andresgalante
0
120
CSS - Media queries o tamanho não importa
andresgalante
0
110
Cosmos
andresgalante
0
130
Open source
andresgalante
3
110
Media Queries - CSS Conf Argentina
andresgalante
3
450
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1033
470k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
650
Are puppies a ranking factor?
jonoalderson
2
4.2k
AI: The stuff that nobody shows you
jnunemaker
PRO
12
1.3k
For a Future-Friendly Web
brad_frost
184
11k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
400
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
Facilitating Awesome Meetings
lara
57
7.2k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Evolving SEO for Evolving Search Engines
ryanjones
0
370
Statistics for Hackers
jakevdp
799
230k