File tree Expand file tree Collapse file tree 3 files changed +56
-35
lines changed
Expand file tree Collapse file tree 3 files changed +56
-35
lines changed Original file line number Diff line number Diff line change @@ -22,40 +22,60 @@ Built from the Tailwind palette.
2222
2323``` elm
2424view =
25- div
26- [ css
27- [ backgroundColor indigo300
28- , hover [ backgroundColor indigo400 ]
29- , color indigo900
30- ]
31- ]
32- []
25+ div
26+ [ css
27+ [ backgroundColor indigo300
28+ , hover [ backgroundColor indigo400 ]
29+ , color indigo900
30+ ]
31+ ]
32+ []
3333```
3434
3535[ Browse all colors ➝] ( https://cedricsoulas.com/elm/css/systems#colors )
3636![ Color system] ( https://github.com/cedricss/elm-css-systems/raw/master/img/colors.png )
3737
3838## Spacing and sizing systems
3939
40- ### Spacing
40+ ``` elm
41+ element =
42+ div
43+ [ css
44+ [ marginTop space8
45+ , padding space2
46+ , width space32
47+ ]
48+ ]
49+ ```
4150
4251``` elm
4352view =
44- div
45- [ css
46- [ height ( fluid 2 3 )
47- , width ( fluid 1 2 )
48- , marginY space4
49- ]
50- ]
51- [ ]
53+ div
54+ [ css
55+ [ displayFlex
56+ , flexWrap wrap
57+ , maxHeight size3XL
58+ , width ( fluid 2 3 )
59+ ]
60+ ]
5261```
5362
5463[ Browse spacing ➝] ( https://cedricsoulas.com/elm/css/systems#spacing )
5564![ Spacing systems] ( https://github.com/cedricss/elm-css-systems/raw/master/img/spacing.png )
5665
5766- [ Learn more about ` fluid ` ] ( https://package.elm-lang.org/packages/cedricss/elm-css-systems/latest/Css-Systems-Spacing#fluid )
5867
68+ ## Font size
69+
70+ ``` elm
71+ view =
72+ span
73+ [ css [ textLG ] ]
74+ [ text " hello" ]
75+ ```
76+
77+ [ Browse font size system ➝] ( https://cedricsoulas.com/elm/css/systems#text )
78+
5979### Max height and max width
6080
6181[ Browse all ➝] ( https://package.elm-lang.org/packages/cedricss/elm-css-systems/latest/Css-Systems-Spacing )
Original file line number Diff line number Diff line change 11{
2- "type" : " package" ,
3- "name" : " cedricss/elm-css-systems" ,
4- "summary" : " Design systems based on elm-css, inspired by Tailwind." ,
5- "license" : " MIT" ,
6- "version" : " 3.0.0" ,
7- "exposed-modules" : [
8- " Css.Systems.Colors" ,
9- " Css.Systems.Spacing" ,
10- " Css.Systems.Utilities"
11- ],
12- "elm-version" : " 0.19.0 <= v < 0.20.0" ,
13- "dependencies" : {
14- "elm/core" : " 1.0.0 <= v < 2.0.0" ,
15- "rtfeldman/elm-css" : " 16.0.1 <= v < 17.0.0"
16- },
17- "test-dependencies" : {}
18- }
2+ "type" : " package" ,
3+ "name" : " cedricss/elm-css-systems" ,
4+ "summary" : " Design systems based on elm-css, inspired by Tailwind." ,
5+ "license" : " MIT" ,
6+ "version" : " 3.1.0" ,
7+ "exposed-modules" : [
8+ " Css.Systems.Colors" ,
9+ " Css.Systems.Spacing" ,
10+ " Css.Systems.Utilities" ,
11+ " Css.Systems.Text"
12+ ],
13+ "elm-version" : " 0.19.0 <= v < 0.20.0" ,
14+ "dependencies" : {
15+ "elm/core" : " 1.0.0 <= v < 2.0.0" ,
16+ "rtfeldman/elm-css" : " 16.0.1 <= v < 17.0.0"
17+ },
18+ "test-dependencies" : {}
19+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " elm-css-systems" ,
3- "version" : " 2.0.2 " ,
3+ "version" : " 3.1.0 " ,
44 "description" : " Design systems based on elm-css, inspired by Tailwind." ,
55 "homepage" : " https://cedricsoulas.com/elm/css/systems" ,
66 "author" : " Cédric Soulas" ,
You can’t perform that action at this time.
0 commit comments