Skip to content

Commit

Permalink
feat: use css variable for opacities rule
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed May 13, 2023
1 parent 0bec67b commit f03481c
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/rules/border.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function handlerBorderColor([, a = '', c]: string[], { theme }: RuleContext<Them
}

function handlerBorderOpacity([, a = '', opacity]: string[]): CSSEntries | undefined {
const v = h.bracket.percent(opacity)
const v = h.bracket.percent.cssvar(opacity)
if (a in directionMap && v != null)
return directionMap[a].map(i => [`--un-border${i}-opacity`, v])
}
Expand Down
4 changes: 2 additions & 2 deletions src/rules/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export const textColors: Rule[] = [
[/^(?:color|c)-(.+)$/, colorResolver('color', 'text'), { autocomplete: '(text|color|c)-$colors' }],
// auto detection and fallback to font-size if the content looks like a size
[/^text-(.+)$/, colorResolver('color', 'text', css => !css.color?.toString().match(numberWithUnitRE)), { autocomplete: '(text|color|c)-$colors' }],
[/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-text-opacity': h.bracket.percent(opacity) }), { autocomplete: '(text|color|c)-(op|opacity)-<percent>' }],
[/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-text-opacity': h.bracket.percent.cssvar(opacity) }), { autocomplete: '(text|color|c)-(op|opacity)-<percent>' }],
]

export const bgColors: Rule[] = [
[/^bg-(.+)$/, colorResolver('background-color', 'bg'), { autocomplete: 'bg-$colors' }],
[/^bg-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-bg-opacity': h.bracket.percent(opacity) }), { autocomplete: 'bg-(op|opacity)-<percent>' }],
[/^bg-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-bg-opacity': h.bracket.percent.cssvar(opacity) }), { autocomplete: 'bg-(op|opacity)-<percent>' }],
]
2 changes: 1 addition & 1 deletion src/rules/decoration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const textDecorations: Rule<Theme>[] = [
}
}
}, { autocomplete: '(underline|decoration)-$colors' }],
[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-line-opacity': h.bracket.percent(opacity) }), { autocomplete: '(underline|decoration)-(op|opacity)-<percent>' }],
[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-line-opacity': h.bracket.percent.cssvar(opacity) }), { autocomplete: '(underline|decoration)-(op|opacity)-<percent>' }],

// offset
[/^(?:underline|decoration)-offset-(.+)$/, ([, s], { theme }) => ({ 'text-underline-offset': theme.lineWidth?.[s] ?? h.auto.bracket.cssvar.global.px(s) }), { autocomplete: '(underline|decoration)-(offset)-<num>' }],
Expand Down
4 changes: 2 additions & 2 deletions src/rules/ring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export const rings: Rule<Theme>[] = [

// colors
[/^ring-(.+)$/, colorResolver('--un-ring-color', 'ring'), { autocomplete: 'ring-$colors' }],
[/^ring-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-ring-opacity': h.bracket.percent(opacity) }), { autocomplete: 'ring-(op|opacity)-<percent>' }],
[/^ring-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-ring-opacity': h.bracket.percent.cssvar(opacity) }), { autocomplete: 'ring-(op|opacity)-<percent>' }],

// offset color
[/^ring-offset-(.+)$/, colorResolver('--un-ring-offset-color', 'ring-offset'), { autocomplete: 'ring-offset-$colors' }],
[/^ring-offset-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-ring-offset-opacity': h.bracket.percent(opacity) }), { autocomplete: 'ring-offset-(op|opacity)-<percent>' }],
[/^ring-offset-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-ring-offset-opacity': h.bracket.percent.cssvar(opacity) }), { autocomplete: 'ring-offset-(op|opacity)-<percent>' }],

// style
['ring-inset', { '--un-ring-inset': 'inset' }],
Expand Down
2 changes: 1 addition & 1 deletion src/rules/shadow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const boxShadows: Rule<Theme>[] = [
}
return colorResolver('--un-shadow-color', 'shadow')(match, context)
}, { autocomplete: ['shadow-$colors', 'shadow-$boxShadow'] }],
[/^shadow-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-shadow-opacity': h.bracket.percent(opacity) }), { autocomplete: 'shadow-(op|opacity)-<percent>' }],
[/^shadow-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-shadow-opacity': h.bracket.percent.cssvar(opacity) }), { autocomplete: 'shadow-(op|opacity)-<percent>' }],

// inset
['shadow-inset', { '--un-shadow-inset': 'inset' }],
Expand Down
4 changes: 2 additions & 2 deletions src/rules/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { colorResolver, handler as h } from '../utils'
export const svgUtilities: Rule<Theme>[] = [
// fills
[/^fill-(.+)$/, colorResolver('fill', 'fill'), { autocomplete: 'fill-$colors' }],
[/^fill-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-fill-opacity': h.bracket.percent(opacity) }), { autocomplete: 'fill-(op|opacity)-<percent>' }],
[/^fill-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-fill-opacity': h.bracket.percent.cssvar(opacity) }), { autocomplete: 'fill-(op|opacity)-<percent>' }],
['fill-none', { fill: 'none' }],

// stroke size
Expand All @@ -23,7 +23,7 @@ export const svgUtilities: Rule<Theme>[] = [

// stroke colors
[/^stroke-(.+)$/, colorResolver('stroke', 'stroke'), { autocomplete: 'stroke-$colors' }],
[/^stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-stroke-opacity': h.bracket.percent(opacity) }), { autocomplete: 'stroke-(op|opacity)-<percent>' }],
[/^stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-stroke-opacity': h.bracket.percent.cssvar(opacity) }), { autocomplete: 'stroke-(op|opacity)-<percent>' }],

// line cap
['stroke-cap-square', { 'stroke-linecap': 'square' }],
Expand Down
4 changes: 2 additions & 2 deletions src/rules/typography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const textStrokes: Rule<Theme>[] = [

// colors
[/^text-stroke-(.+)$/, colorResolver('-webkit-text-stroke-color', 'text-stroke'), { autocomplete: 'text-stroke-$colors' }],
[/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-text-stroke-opacity': h.bracket.percent(opacity) }), { autocomplete: 'text-stroke-(op|opacity)-<percent>' }],
[/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-text-stroke-opacity': h.bracket.percent.cssvar(opacity) }), { autocomplete: 'text-stroke-(op|opacity)-<percent>' }],
]

export const textShadows: Rule<Theme>[] = [
Expand All @@ -151,5 +151,5 @@ export const textShadows: Rule<Theme>[] = [

// colors
[/^text-shadow-color-(.+)$/, colorResolver('--un-text-shadow-color', 'text-shadow'), { autocomplete: 'text-shadow-color-$colors' }],
[/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-text-shadow-opacity': h.bracket.percent(opacity) }), { autocomplete: 'text-shadow-color-(op|opacity)-<percent>' }],
[/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ '--un-text-shadow-opacity': h.bracket.percent.cssvar(opacity) }), { autocomplete: 'text-shadow-color-(op|opacity)-<percent>' }],
]
11 changes: 11 additions & 0 deletions test/__snapshots__/preset-mini.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,14 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.marker\\\\:bg-violet-200::marker{--licl-bg-opacity:1;background-color:rgba(221,214,254,var(--licl-bg-opacity));}
.peer:checked~.peer-checked\\\\:bg-blue-500{--licl-bg-opacity:1;background-color:rgba(59,130,246,var(--licl-bg-opacity));}
.previous\\\\/label:checked+.previous-checked\\\\/label\\\\:bg-red-500{--licl-bg-opacity:1;background-color:rgba(239,68,68,var(--licl-bg-opacity));}
.bg-opacity-\\\\$opacity-variable{--licl-bg-opacity:var(--opacity-variable);}
.bg-opacity-45{--licl-bg-opacity:0.45;}
.all-\\\\[svg\\\\]\\\\:fill-red svg{--licl-fill-opacity:1;fill:rgba(248,113,113,var(--licl-fill-opacity));}
.fill-\\\\[\\\\#123\\\\]{--licl-fill-opacity:1;fill:rgba(17,34,51,var(--licl-fill-opacity));}
.fill-\\\\[1rem\\\\]{fill:1rem;}
.fill-current{fill:currentColor;}
.fill-green-400{--licl-fill-opacity:1;fill:rgba(74,222,128,var(--licl-fill-opacity));}
.fill-opacity-\\\\$opacity-variable{--licl-fill-opacity:var(--opacity-variable);}
.fill-opacity-80{--licl-fill-opacity:0.8;}
.fill-none{fill:none;}
.stroke-size-\\\\[1rem\\\\],
Expand All @@ -352,6 +354,7 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.stroke-\\\\[1rem\\\\]{stroke:1rem;}
.stroke-current{stroke:currentColor;}
.stroke-green-400{--licl-stroke-opacity:1;stroke:rgba(74,222,128,var(--licl-stroke-opacity));}
.stroke-opacity-\\\\$opacity-variable{--licl-stroke-opacity:var(--opacity-variable);}
.stroke-opacity-80{--licl-stroke-opacity:0.8;}
.stroke-cap-round{stroke-linecap:round;}
.stroke-cap-auto{stroke-linecap:butt;}
Expand Down Expand Up @@ -407,6 +410,7 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.border-t-\\\\[\\\\#124\\\\]{--licl-border-opacity:1;--licl-border-top-opacity:var(--licl-border-opacity);border-top-color:rgba(17,34,68,var(--licl-border-top-opacity));}
.border-t-\\\\$color{border-top-color:var(--color);}
.border-t-black\\\\/10{border-top-color:rgba(0,0,0,0.1);}
.border-opacity-\\\\$opacity-variable{--licl-border-opacity:var(--opacity-variable);}
.border-opacity-20{--licl-border-opacity:0.2;}
.border-y-op-30{--licl-border-top-opacity:0.3;--licl-border-bottom-opacity:0.3;}
.border-b-op40{--licl-border-bottom-opacity:0.4;}
Expand Down Expand Up @@ -566,6 +570,7 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.decoration-purple\\\\/50{-webkit-text-decoration-color:rgba(192,132,252,0.5);text-decoration-color:rgba(192,132,252,0.5);}
.decoration-transparent{-webkit-text-decoration-color:transparent;text-decoration-color:transparent;}
.underline-red-500{-webkit-text-decoration-color:rgba(239,68,68,var(--licl-line-opacity));--licl-line-opacity:1;text-decoration-color:rgba(239,68,68,var(--licl-line-opacity));}
.underline-op-\\\\$opacity-variable{--licl-line-opacity:var(--opacity-variable);}
.underline-op80{--licl-line-opacity:0.8;}
.decoration-offset-0\\\\.6rem,
.underline-offset-0\\\\.6rem{text-underline-offset:0.6rem;}
Expand All @@ -578,12 +583,14 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.text-stroke-6{-webkit-text-stroke-width:6px;}
.text-stroke-sm{-webkit-text-stroke-width:thin;}
.text-stroke-blue-500{--licl-text-stroke-opacity:1;-webkit-text-stroke-color:rgba(59,130,246,var(--licl-text-stroke-opacity));}
.text-stroke-op-\\\\$opacity-variable{--licl-text-stroke-opacity:var(--opacity-variable);}
.text-stroke-op-60{--licl-text-stroke-opacity:0.6;}
.text-shadow{--licl-text-shadow:0 0 2rpx var(--licl-text-shadow-color, rgba(0,0,0,0.2)),0 0 2rpx var(--licl-text-shadow-color, rgba(1,0,5,0.1));text-shadow:var(--licl-text-shadow);}
.text-shadow-\\\\$var{text-shadow:var(--var);}
.text-shadow-lg{--licl-text-shadow:6rpx 6rpx 12rpx var(--licl-text-shadow-color, rgba(0,0,0,0.26)),0 0 10rpx var(--licl-text-shadow-color, rgba(15,3,86,0.22));text-shadow:var(--licl-text-shadow);}
.text-shadow-none{--licl-text-shadow:0 0 var(--licl-text-shadow-color, rgba(0,0,0,0));text-shadow:var(--licl-text-shadow);}
.text-shadow-color-red-300{--licl-text-shadow-opacity:1;--licl-text-shadow-color:rgba(252,165,165,var(--licl-text-shadow-opacity));}
.text-shadow-color-op-\\\\$opacity-variable{--licl-text-shadow-opacity:var(--opacity-variable);}
.text-shadow-color-op-30{--licl-text-shadow-opacity:0.3;}
.case-upper{text-transform:uppercase;}
.case-normal{text-transform:none;}
Expand Down Expand Up @@ -665,6 +672,7 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.text-rose{--licl-text-opacity:1;color:rgba(251,113,133,var(--licl-text-opacity));}
.placeholder-color-opacity-60::placeholder{--licl-text-opacity:0.6;}
.text-opacity-\\\\[13\\\\.3333333\\\\%\\\\]{--licl-text-opacity:13.3333333%;}
.text-opacity-\\\\$opacity-variable{--licl-text-opacity:var(--opacity-variable);}
.font-italic,
.italic{font-style:italic;}
.font-oblique,
Expand All @@ -682,6 +690,7 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.shadow-none{--licl-shadow:0 0 var(--licl-shadow-color, rgba(0,0,0,0));box-shadow:var(--licl-ring-offset-shadow), var(--licl-ring-shadow), var(--licl-shadow);}
.shadow-transparent{--licl-shadow-color:transparent;}
.shadow-xl{--licl-shadow:var(--licl-shadow-inset) 0 40rpx 50rpx -10rpx var(--licl-shadow-color, rgba(0,0,0,0.1)),var(--licl-shadow-inset) 0 16rpx 20rpx -12rpx var(--licl-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--licl-ring-offset-shadow), var(--licl-ring-shadow), var(--licl-shadow);}
.shadow-op-\\\\$opacity-variable{--licl-shadow-opacity:var(--opacity-variable);}
.shadow-op-50{--licl-shadow-opacity:0.5;}
.shadow-inset{--licl-shadow-inset:inset;}
.ring,
Expand All @@ -697,11 +706,13 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.ring-offset-width-\\\\$variable{--licl-ring-offset-width:var(--variable);}
.ring-red2{--licl-ring-opacity:1;--licl-ring-color:rgba(254,202,202,var(--licl-ring-opacity));}
.ring-red2\\\\/5{--licl-ring-color:rgba(254,202,202,0.05);}
.ring-op-\\\\$opacity-variable{--licl-ring-opacity:var(--opacity-variable);}
.ring-op-5{--licl-ring-opacity:0.05;}
.ring-offset-\\\\$variable{--licl-ring-offset-color:var(--variable);}
.ring-offset-green5{--licl-ring-offset-opacity:1;--licl-ring-offset-color:rgba(34,197,94,var(--licl-ring-offset-opacity));}
.ring-offset-red2{--licl-ring-offset-opacity:1;--licl-ring-offset-color:rgba(254,202,202,var(--licl-ring-offset-opacity));}
.ring-offset-red2\\\\/5{--licl-ring-offset-color:rgba(254,202,202,0.05);}
.ring-offset-op-\\\\$opacity-variable{--licl-ring-offset-opacity:var(--opacity-variable);}
.ring-offset-op-5{--licl-ring-offset-opacity:0.05;}
.ring-inset{--licl-ring-inset:inset;}
.flex{display:flex;}
Expand Down
11 changes: 11 additions & 0 deletions test/__snapshots__/preset-weapp-rules.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,14 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.marker_cl11_bg-violet-200::marker{--un-bg-opacity:1;background-color:rgba(221,214,254,var(--un-bg-opacity));}
.peer:checked~.peer-checked_cl11_bg-blue-500{--un-bg-opacity:1;background-color:rgba(59,130,246,var(--un-bg-opacity));}
.previous_sl11_label:checked+.previous-checked_sl11_label_cl11_bg-red-500{--un-bg-opacity:1;background-color:rgba(239,68,68,var(--un-bg-opacity));}
.bg-opacity-_do11_opacity-variable{--un-bg-opacity:var(--opacity-variable);}
.bg-opacity-45{--un-bg-opacity:0.45;}
.all-_lfl11_svg_lfr11__cl11_fill-red svg{--un-fill-opacity:1;fill:rgba(248,113,113,var(--un-fill-opacity));}
.fill-_lfl11__wn11_123_lfr11_{--un-fill-opacity:1;fill:rgba(17,34,51,var(--un-fill-opacity));}
.fill-_lfl11_1rem_lfr11_{fill:1rem;}
.fill-current{fill:currentColor;}
.fill-green-400{--un-fill-opacity:1;fill:rgba(74,222,128,var(--un-fill-opacity));}
.fill-opacity-_do11_opacity-variable{--un-fill-opacity:var(--opacity-variable);}
.fill-opacity-80{--un-fill-opacity:0.8;}
.fill-none{fill:none;}
.stroke-size-_do11_variable,
Expand All @@ -316,6 +318,7 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.stroke-_lfl11_1rem_lfr11_{stroke:1rem;}
.stroke-current{stroke:currentColor;}
.stroke-green-400{--un-stroke-opacity:1;stroke:rgba(74,222,128,var(--un-stroke-opacity));}
.stroke-opacity-_do11_opacity-variable{--un-stroke-opacity:var(--opacity-variable);}
.stroke-opacity-80{--un-stroke-opacity:0.8;}
.stroke-cap-round{stroke-linecap:round;}
.stroke-cap-auto{stroke-linecap:butt;}
Expand Down Expand Up @@ -371,6 +374,7 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.border-t-_do11_color{border-top-color:var(--color);}
.border-t-_lfl11__wn11_124_lfr11_{--un-border-opacity:1;--un-border-top-opacity:var(--un-border-opacity);border-top-color:rgba(17,34,68,var(--un-border-top-opacity));}
.border-t-black_sl11_10{border-top-color:rgba(0,0,0,0.1);}
.border-opacity-_do11_opacity-variable{--un-border-opacity:var(--opacity-variable);}
.border-opacity-20{--un-border-opacity:0.2;}
.border-y-op-30{--un-border-top-opacity:0.3;--un-border-bottom-opacity:0.3;}
.border-b-op40{--un-border-bottom-opacity:0.4;}
Expand Down Expand Up @@ -532,6 +536,7 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.decoration-purple_sl11_50{-webkit-text-decoration-color:rgba(192,132,252,0.5);text-decoration-color:rgba(192,132,252,0.5);}
.decoration-transparent{-webkit-text-decoration-color:transparent;text-decoration-color:transparent;}
.underline-red-500{-webkit-text-decoration-color:rgba(239,68,68,var(--un-line-opacity));--un-line-opacity:1;text-decoration-color:rgba(239,68,68,var(--un-line-opacity));}
.underline-op-_do11_opacity-variable{--un-line-opacity:var(--opacity-variable);}
.underline-op80{--un-line-opacity:0.8;}
.decoration-offset-0_dl11_6rem,
.underline-offset-0_dl11_6rem{text-underline-offset:0.6rem;}
Expand All @@ -544,12 +549,14 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.text-stroke-6{-webkit-text-stroke-width:6px;}
.text-stroke-sm{-webkit-text-stroke-width:thin;}
.text-stroke-blue-500{--un-text-stroke-opacity:1;-webkit-text-stroke-color:rgba(59,130,246,var(--un-text-stroke-opacity));}
.text-stroke-op-_do11_opacity-variable{--un-text-stroke-opacity:var(--opacity-variable);}
.text-stroke-op-60{--un-text-stroke-opacity:0.6;}
.text-shadow{--un-text-shadow:0 0 2rpx var(--un-text-shadow-color, rgba(0,0,0,0.2)),0 0 2rpx var(--un-text-shadow-color, rgba(1,0,5,0.1));text-shadow:var(--un-text-shadow);}
.text-shadow-_do11_var{text-shadow:var(--var);}
.text-shadow-lg{--un-text-shadow:6rpx 6rpx 12rpx var(--un-text-shadow-color, rgba(0,0,0,0.26)),0 0 10rpx var(--un-text-shadow-color, rgba(15,3,86,0.22));text-shadow:var(--un-text-shadow);}
.text-shadow-none{--un-text-shadow:0 0 var(--un-text-shadow-color, rgba(0,0,0,0));text-shadow:var(--un-text-shadow);}
.text-shadow-color-red-300{--un-text-shadow-opacity:1;--un-text-shadow-color:rgba(252,165,165,var(--un-text-shadow-opacity));}
.text-shadow-color-op-_do11_opacity-variable{--un-text-shadow-opacity:var(--opacity-variable);}
.text-shadow-color-op-30{--un-text-shadow-opacity:0.3;}
.case-upper{text-transform:uppercase;}
.case-normal{text-transform:none;}
Expand Down Expand Up @@ -631,6 +638,7 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.text-red2{--un-text-opacity:1;color:rgba(254,202,202,var(--un-text-opacity));}
.text-rose{--un-text-opacity:1;color:rgba(251,113,133,var(--un-text-opacity));}
.placeholder-color-opacity-60::placeholder{--un-text-opacity:0.6;}
.text-opacity-_do11_opacity-variable{--un-text-opacity:var(--opacity-variable);}
.text-opacity-_lfl11_13_dl11_3333333_pes11__lfr11_{--un-text-opacity:13.3333333%;}
.font-italic,
.italic{font-style:italic;}
Expand All @@ -649,6 +657,7 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.shadow-none{--un-shadow:0 0 var(--un-shadow-color, rgba(0,0,0,0));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.shadow-transparent{--un-shadow-color:transparent;}
.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 40rpx 50rpx -10rpx var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 16rpx 20rpx -12rpx var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.shadow-op-_do11_opacity-variable{--un-shadow-opacity:var(--opacity-variable);}
.shadow-op-50{--un-shadow-opacity:0.5;}
.shadow-inset{--un-shadow-inset:inset;}
.ring,
Expand All @@ -664,11 +673,13 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.ring-offset-width-_do11_variable{--un-ring-offset-width:var(--variable);}
.ring-red2{--un-ring-opacity:1;--un-ring-color:rgba(254,202,202,var(--un-ring-opacity));}
.ring-red2_sl11_5{--un-ring-color:rgba(254,202,202,0.05);}
.ring-op-_do11_opacity-variable{--un-ring-opacity:var(--opacity-variable);}
.ring-op-5{--un-ring-opacity:0.05;}
.ring-offset-_do11_variable{--un-ring-offset-color:var(--variable);}
.ring-offset-green5{--un-ring-offset-opacity:1;--un-ring-offset-color:rgba(34,197,94,var(--un-ring-offset-opacity));}
.ring-offset-red2{--un-ring-offset-opacity:1;--un-ring-offset-color:rgba(254,202,202,var(--un-ring-offset-opacity));}
.ring-offset-red2_sl11_5{--un-ring-offset-color:rgba(254,202,202,0.05);}
.ring-offset-op-_do11_opacity-variable{--un-ring-offset-opacity:var(--opacity-variable);}
.ring-offset-op-5{--un-ring-offset-opacity:0.05;}
.ring-inset{--un-ring-inset:inset;}
.flex{display:flex;}
Expand Down
Loading

0 comments on commit f03481c

Please sign in to comment.