11---
2- import { string } from ' astro/zod' ;
3-
42interface Props {
53 link: string ;
64 ty? : " primary" | " secondary" ;
@@ -14,45 +12,45 @@ const { link, ty = "primary", inFooter = false, scale = 1 }: Props = Astro.props
1412
1513<a
1614 class:list ={ [" button" , ty , inFooter ? " footer" : null ]}
17- style =`text-decoration: none;color:$color-neutral-400;`
1815 href ={ link }
1916>
2017 <slot >{ link } </slot >
2118</a >
2219
2320<style lang =" scss" is:global define:vars ={ { scale }} >
24- @import "../styles/variables.scss";
21+ @use "../styles/variables.scss";
2522
2623 .button {
24+ color: variables.$color-neutral-400;
25+
2726 align-items: center;
28- border-radius: space(1);
27+ border-radius: variables. space(1);
2928 border: 1px solid transparent;
3029 cursor: pointer;
3130 display: inline-flex;
32- font-size: calc(var(--scale) * $font-size-md);
31+ font-size: calc(var(--scale) * variables. $font-size-md);
3332 font-weight: 700;
34- // min-height: calc(var(--scale) * space(12));
35- padding: calc(var(--scale) * space(3)) calc(var(--scale) * space(6));
33+ padding: calc(var(--scale) * variables.space(3)) calc(var(--scale) * variables.space(6));
3634 text-align: center;
3735 text-decoration: none;
3836 user-select: none;
3937
4038 &.primary {
41- background-color: $color-red-400;
42- color: $color-neutral-400;
39+ background-color: variables. $color-red-400;
40+ color: variables. $color-neutral-400;
4341 }
4442
4543 &.secondary {
46- border: 1px solid $color-red-400;
47- color: $color-red-400;
44+ border: 1px solid variables. $color-red-400;
45+ color: variables. $color-red-400;
4846 }
4947
5048 &.footer {
5149 all: unset;
5250
5351 text-decoration: underline !important;
5452 cursor: pointer;
55- color: $color-neutral-400;
53+ color: variables. $color-neutral-400;
5654 }
5755 }
5856</style >
0 commit comments