Skip to content

Commit eb6b2f9

Browse files
authored
feat: safelisted css classes (#1581)
1 parent ae48ff0 commit eb6b2f9

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/unfold/styles.css

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
}
1111

1212
@source inline("aspect-square bg-white/[.06] border-white/40 h-3 w-3 h-[64px] w-[65px]! left-[65px] {dark:,}text-base-{50,{100..900},950} dark:hover:bg-white/[.06] {-,}translate-{x,y}-{1/2}");
13-
@source inline("{-,}{top,bottom,left,right}-{1/2,0..6} {!,}leading-[38px]");
14-
@source inline("bg-linear-to-{t,r,b,l} from-primary-{50,{100..900..100},950} to-primary-{50,{100..900..100},950}");
13+
@source inline("{-,}{top,bottom,left,right}-{1/2,0..6} {!,}leading-[38px] text-{default,subtle,important}");
14+
@source inline("bg-linear-to-{{t,r,b,l,tl,tr,bl,br}} {dark:,}{from, to}-{{{base,primary}-{50,{100..900..100},950}},white}");
1515
@source inline("rounded rounded-{t,r,b,l} rounded-{t,r,b,l}-default");
1616
@source inline("{md:,lg:,2xl:,}relative {md:,lg:,2xl:,}flex {md:,lg:,2xl:,}absolute {md:,lg:,2xl:,}sticky");
17-
@source inline("{-,}m{t,r,b,l,x,y,}-{0..24} {-,}p{t,r,b,l,x,y,}-{0..24}");
17+
@source inline("{-,}{lg:,}m{t,r,b,l,x,y,}-{0..24} {-,}{lg:,}p{t,r,b,l,x,y,}-{0..24}");
1818
@source inline("{md:,lg:,}border-{0,2} {md:,lg:,}border-{t,r,b,l}-{0,2}");
1919
@source inline("{hover:,dark:,}bg-primary-{50,{100..900..100},950}");
2020
@source inline("{hover:,dark:,}border-base-{50,{100..900..100},950} {hover:,dark:,}border-transparent");
2121
@source inline("{hover:,dark:,}bg-base-{50,{100..900..100},950}");
22-
@source inline("{md:,lg:,}w-{1,1/2,1/3,2/3,1/4,2/4,3/4,1/5,2/5,3/5,4/5,1/6,2/6,3/6,4/6,5/6,1/7,2/7,3/7,4/7,5/7,6/7}");
23-
@source inline("{md:,lg:,}gap-{0.5,{1..12}}");
24-
@source inline("{md:,lg:,}grid-cols-{1..12}");
25-
@source inline("{md:,lg:,}col-span-{1..12}");
22+
@source inline("{md:,lg:,}{min-h,h,min-w,w}-{1..8} {md:,lg:,}w-{1/2,1/3,2/3,1/4,2/4,3/4,1/5,2/5,3/5,4/5,1/6,2/6,3/6,4/6,5/6,1/7,2/7,3/7,4/7,5/7,6/7}");
23+
@source inline("{md:,lg:,xl:,}gap-{0.5,{1..16}}");
24+
@source inline("{md:,lg:,xl:,}grid-cols-{1..16}");
25+
@source inline("{md:,lg:,xl:,}col-span-{1..16}");
2626

2727
@layer base {
2828
*,
@@ -75,6 +75,19 @@
7575
--color-font-important-dark: var(--color-font-important-dark);
7676
}
7777

78+
79+
@utility text-important {
80+
@apply text-font-important-light dark:text-font-important-dark;
81+
}
82+
83+
@utility text-default {
84+
@apply text-font-default-light dark:text-font-default-dark;
85+
}
86+
87+
@utility text-subtle {
88+
@apply text-font-subtle-light dark:text-font-subtle-dark;
89+
}
90+
7891
@utility field-sizing-content {
7992
field-sizing: content;
8093
}

0 commit comments

Comments
 (0)