Skip to content

Commit d2ac2b5

Browse files
committed
feat(styles/components): button styles
1 parent 70c4852 commit d2ac2b5

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
@layer components {
2+
.gecut-button {
3+
&.elevated {
4+
@apply text-primary bg-surfaceContainerLow elevation-1 state-primary hover:elevation-2 focus:elevation-1 disabled:opacity-35;
5+
}
6+
&.filled {
7+
@apply text-onPrimary bg-primary elevation-0 state-onPrimary hover:elevation-2 focus:elevation-1 disabled:opacity-15;
8+
}
9+
&.filled-tonal {
10+
@apply text-onSecondaryContainer bg-secondaryContainer elevation-0 state-onSecondaryContainer hover:elevation-2 focus:elevation-1 disabled:opacity-25;
11+
}
12+
&.outlined {
13+
@apply text-primary bg-transparent border border-outline state-primary disabled:opacity-60;
14+
}
15+
&.text {
16+
@apply text-primary bg-transparent state-primary disabled:opacity-60;
17+
}
18+
19+
& &-loader {
20+
@apply absolute inset-0 flex justify-center items-center transition-opacity duration-300 opacity-0;
21+
}
22+
23+
& &-body {
24+
@apply flex items-center justify-center h-full w-full gap-2 transition-opacity duration-300 opacity-100;
25+
}
26+
27+
&[loading] {
28+
.gecut-button-loader {
29+
@apply opacity-100;
30+
}
31+
.gecut-button-body {
32+
@apply opacity-0;
33+
}
34+
35+
@apply cursor-default pointer-events-none;
36+
}
37+
38+
@apply relative rounded-full h-10 px-6 cursor-pointer focus-ring disabled:cursor-default disabled:pointer-events-none;
39+
}
40+
}

0 commit comments

Comments
 (0)