UNPKG
@indielayer/ui
Version:
alpha (1.0.0-alpha.9)
dev (0.0.0-dev-20240212133527)
latest (1.15.3)
1.15.3
1.15.2
1.15.1
1.15.0
1.14.5
1.14.4
1.14.3
1.14.2
1.14.1
1.14.0
1.13.2
1.13.1
1.13.0
1.12.1
1.12.0
1.11.0
1.10.5
1.10.4
1.10.3
1.10.2
1.10.1
1.10.0
1.9.3
1.9.2
1.9.1
1.9.0
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.2
1.5.1
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-alpha.9
1.0.0-alpha.8
1.0.0-alpha.7
1.0.0-alpha.6
1.0.0-alpha.5
1.0.0-alpha.3
1.0.0-alpha.2
1.0.0-alpha.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
0.0.0-dev-20240212133527
0.0.0-dev-20240205230210
0.0.0-dev-20240205224808
0.0.0-dev-20240202140555
0.0.0-dev-20240129122517
0.0.0-dev-20240127005325
0.0.0-dev-20240125104319
Indielayer UI Components with Tailwind CSS build for Vue 3
github.com/indielayer/ui
indielayer/ui
@indielayer/ui
/
src
/
components
/
badge
/
theme
/
Badge.base.theme.ts
16 lines
(11 loc)
•
275 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import
type
{
BadgeTheme
}
from
'../Badge.vue'
const
theme
:
BadgeTheme
= {
classes
: {
wrapper
:
'inline-block'
, },
styles
(
{ props, colors, css }
) {
const
color = colors.
getPalette
(props.
color
)
return
css.
get
(
'bg'
, color[
500
]) }, }
export
default
theme