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
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
すこし踏み込む CancellationToken
htkym
2
1.7k
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.6k
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
150
sbt 2.0: takeoff
eed3si9n
0
150
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
22
22k
最近”作らせてる” ローカルAIアプリの話
akit37
0
460
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.1k
Event is what happens
moro
2
400
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
2
1.7k
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
130
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
110
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2.2k
GraphQLとの向き合い方2022年版
quramy
50
15k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
Discover your Explorer Soul
emna__ayadi
2
1.3k
RailsConf 2023
tenderlove
30
1.6k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
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.