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
Somewhat Stylish
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Dominic Barker
November 03, 2014
Programming
65
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Somewhat Stylish
Dominic Barker
November 03, 2014
More Decks by Dominic Barker
See All by Dominic Barker
Introduction to functional programming with Javascript
dakuan
0
60
Atomic Architecture
dakuan
3
180
Model, View, Whatever.
dakuan
0
130
Other Decks in Programming
See All in Programming
高専キャリア LT 発表内容
crysta1221
6
5.7k
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
210
GraphRAGのKnowledge Graphを 直接!見る/View-GraphRAG's-KnowledgeGraph-directly!
tyumugi1113
1
310
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
3
180
Snowflakeで業務アプリを作ろう。 Snowflakeのアプリ機能解説&実践ガイド
ayumu_yamaguchi
1
270
新人はどこまで自力でやり、どこからAIに頼るべきか/エンジニア育成に向き合う_先輩たちの悩みと知見共有会
toppan_digital_dev
1
620
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
0
870
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
120
AIエージェント時代のコードレビューを設計する
nogu66
6
2.7k
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
4.3k
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
240
TiDB Cloudのカスタムコントローラーによるオートスケール対応
takaidohigasi
0
110
Featured
See All Featured
How to make the Groovebox
asonas
2
2.4k
A Soul's Torment
seathinner
7
3.6k
Statistics for Hackers
jakevdp
799
230k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
[SF Ruby Conf 2025] Rails X
palkan
2
1.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
The Curse of the Amulet
leimatthew05
2
14k
Utilizing Notion as your number one productivity tool
mfonobong
4
590
New Earth Scene 8
popppiees
3
2.6k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
370
Transcript
Somewhat Stylish
CSS is crap • Terrible language generally. • Specificity is
confusing. • Big files, 80% of which isn’t even used on any particular page. • LESS / SASS help some things, but make others worse.
Solution
Store CSS in Javascript { button: {
background-‐color: 'red', border-‐radius: '2px' } }
Use React.js mixin /** * @jsx React.DOM */
var React = require('react'), ClassToStyleMixin = require('class-‐to-‐style'); var Button = React.createClass({ mixins: [ClassToStyleMixin] render: function() { return ( <a className={styles.button}> {this.props.text} </a> ); } }); module.exports = Button;
Compiled HTML <a style="background-‐color:red;border-‐radius:2px;"> Click me! </a>
Good • No more Stylesheets. • Fine grained control over
element’s styles. • Faster browser perfomance. • Only have what you need.
Not good • Uses inline styles. • Larger page size.
• Lots of duplication. • More complex.