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
Variáveis Nativas com CSS
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Simone Amorim
February 11, 2017
Technology
130
1
Share
Variáveis Nativas com CSS
Variáveis Nativas com CSS x Variáveis em pre-processadores
Simone Amorim
February 11, 2017
More Decks by Simone Amorim
See All by Simone Amorim
A Inclusão de Mulheres no Mercado de Tecnologia
simoneas02
0
75
Get start with react-test-library.
simoneas02
0
70
ES6 and Beyond pdf
simoneas02
0
210
Montando layouts em um mini game
simoneas02
2
270
Experiência na China Simone e Willany pareando <3
simoneas02
0
92
Front-end na vida real
simoneas02
0
220
It's me!!
simoneas02
0
120
Montando layouts em um mini game chamado Browser
simoneas02
1
210
It's me!!
simoneas02
0
270
Other Decks in Technology
See All in Technology
正解のないAIプロダクトをどう導くか?dodaが挑む、ユーザーの『本音』を構造化する評価設計と検証のリアル
techtekt
PRO
0
180
【Gen-AX】20260530開催_JJUG CCC 2026 Spring
genax
0
420
Amazon Bedrock AgentCore ワークショップ JAWS UG TOHOKU / amazon-bedrock-agentcore-workshop-jawsug-tohoku-2026
gawa
5
170
ルールやカスタム機能、どう使う?理想の出力を引き出すために今知りたいIBM Bob 5つの機能
muehara
1
330
運用を見据えたAIエージェント設計実践
amacbee
1
2.8k
個人最適 から 全体最適 へ AI情報共有会・AIギルド・AI-DLC で進める カンリーの組織展開
rfdnxbro
0
1.5k
生成 AI × MCP で切り拓く次世代 SRE!自律型運用への挑戦と開発者体験の進化
_awache
0
150
Building applications in the Gemini API family.
line_developers_tw
PRO
0
1.3k
GoとSIMDとWasmの今。
askua
3
500
Databricks における 生成AIガバナンスの実践
taka_aki
1
310
新規ゲーム開発におけるAI駆動開発のリアル
202409e2
0
2.5k
Sony_KMP_Journey_KotlinConf2026
sony
2
210
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
350
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
420
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
Ruling the World: When Life Gets Gamed
codingconduct
0
240
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
250
[SF Ruby Conf 2025] Rails X
palkan
2
1.1k
How to train your dragon (web standard)
notwaldorf
97
6.7k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
240
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
320
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.3k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
530
Transcript
A long time ago in a galaxy far far away…
Revenge of the Platform
I'm Simone Amorim, mother and studing for become a Front-End
Developer and CSS Evangelist <3 I love running and ride a bike! @simoneas02
http://www.w3.org/TR/css-variables/ CSS Custom Properties for Cascading Variables Module Level 1
Basics
Declare the Custom Properties .luke { --color: #000; --size: 200px;
}
Use with var() function .luke { --color: #000; --size: 200px;
background-color: var(--color); width: var(-size); height: var(-size); }
None
SCope
.container { --color: #000; } .box { background-color: var(—cor); }
// Bad <div class=“container”> O choose </div> <div class=“box”> You </div>
.container { --color: #000; } .box { background-color: var(—cor); }
// Good <div class=“container”> <div class=“box”> I choose You </div> </div>
:root { --cor: #000; } .luke { background-color: var(—cor); }
.leia { background-color: var(—cor); } // Good
FALLBACK
Use a second value .yoda { background-color: var(—color, green); width:
var(-size, 10px); height: var(-size, 10px); }
preprocessors x custom properties
Javascript
http://codepen.io/danield770/pen/rxqPOM
Support
http://caniuse.com/#search=variables
None
progressive enhancement
Double property trick .yoda { color: green; color: var(—color, green);
}
None
Para finalizar, o mais importante!
Código é só código, o que realmente importa é o
que o "codar" pode proporcionar para as pessoas que você ama.. “ - Afonso Pacifer
26 days Front-End Study
May the force be with you…
Thanks @simoneas02