Skip to content

Commit ffb850c

Browse files
committed
refactor(AtomicTypes): move ColorScheme module from AtomicTypes to Chakra__Theme module
1 parent 7e167db commit ffb850c

File tree

3 files changed

+68
-70
lines changed

3 files changed

+68
-70
lines changed

src/Interfaces/Chakra__AtomicTypes.res

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,51 +1836,6 @@ module SVG = {
18361836
}
18371837
}
18381838

1839-
module ColorScheme = {
1840-
type t = [
1841-
| #whiteAlpha
1842-
| #blackAlpha
1843-
| #gray
1844-
| #red
1845-
| #orange
1846-
| #yellow
1847-
| #green
1848-
| #teal
1849-
| #blue
1850-
| #cyan
1851-
| #purple
1852-
| #pink
1853-
| #linkedin
1854-
| #facebook
1855-
| #messenger
1856-
| #whatsapp
1857-
| #twitter
1858-
| #telegram
1859-
]
1860-
1861-
let toString = x =>
1862-
switch x {
1863-
| #whiteAlpha => "whiteAlpha"
1864-
| #blackAlpha => "blackAlpha"
1865-
| #gray => "gray"
1866-
| #red => "red"
1867-
| #orange => "orange"
1868-
| #yellow => "yellow"
1869-
| #green => "green"
1870-
| #teal => "teal"
1871-
| #blue => "blue"
1872-
| #cyan => "cyan"
1873-
| #purple => "purple"
1874-
| #pink => "pink"
1875-
| #linkedin => "linkedin"
1876-
| #facebook => "facebook"
1877-
| #messenger => "messenger"
1878-
| #whatsapp => "whatsapp"
1879-
| #twitter => "twitter"
1880-
| #telegram => "telegram"
1881-
}
1882-
}
1883-
18841839
module Colors = {
18851840
type t = [
18861841
| Color.t

src/Interfaces/Chakra__AtomicTypes.resi

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,31 +1356,6 @@ module SVG: {
13561356
}
13571357
}
13581358

1359-
module ColorScheme: {
1360-
type t = [
1361-
| #whiteAlpha
1362-
| #blackAlpha
1363-
| #gray
1364-
| #red
1365-
| #orange
1366-
| #yellow
1367-
| #green
1368-
| #teal
1369-
| #blue
1370-
| #cyan
1371-
| #purple
1372-
| #pink
1373-
| #linkedin
1374-
| #facebook
1375-
| #messenger
1376-
| #whatsapp
1377-
| #twitter
1378-
| #telegram
1379-
]
1380-
1381-
let toString: t => string
1382-
}
1383-
13841359
module Colors: {
13851360
type t = [
13861361
| Color.t

src/Interfaces/Chakra__Theme.res

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
module AliasText = {
2+
type t = [
3+
| #i
4+
| #u
5+
| #abbr
6+
| #cite
7+
| #del
8+
| #em
9+
| #ins
10+
| #kbd
11+
| #mark
12+
| #s
13+
| #samp
14+
| #sub
15+
| #sup
16+
]
17+
}
18+
module Orientation = {
19+
type t = [
20+
| #horizontal
21+
| #vertical
22+
]
23+
}
24+
module ColorScheme = {
25+
type t = [
26+
| #whiteAlpha
27+
| #blackAlpha
28+
| #gray
29+
| #red
30+
| #orange
31+
| #yellow
32+
| #green
33+
| #teal
34+
| #blue
35+
| #cyan
36+
| #purple
37+
| #pink
38+
| #linkedin
39+
| #facebook
40+
| #messenger
41+
| #whatsapp
42+
| #twitter
43+
| #telegram
44+
]
45+
}
46+
module Size = {
47+
type xs = [#xs]
48+
type sm = [#sm]
49+
type md = [#md]
50+
type lg = [#lg]
51+
type xl = [#xl]
52+
type xl2 = [@as("2xl") #xl2]
53+
type xl3 = [@as("3xl") #xl3]
54+
type xl4 = [@as("4xl") #xl4]
55+
module Heading = {
56+
type t = [
57+
| xs
58+
| xs
59+
| sm
60+
| md
61+
| lg
62+
| xl
63+
| xl2
64+
| xl3
65+
| xl4
66+
]
67+
}
68+
}

0 commit comments

Comments
 (0)