@@ -10,7 +10,7 @@ function Text({
|
||||
if (className) classes.push(className);
|
||||
|
||||
classes.push(`text text-${variant} text-${weight}`);
|
||||
if (primary) classes.push('text-primary');
|
||||
if (primary) classes.push('font-primary');
|
||||
|
||||
const textClass = classes.join(' ');
|
||||
if (span) return <span className={classes.join(' ')}>{ children }</span>;
|
||||
|
||||
@@ -24,14 +24,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.text-primary {
|
||||
font-family: var(--font-primary);
|
||||
|
||||
--fw-light: var(--p-fw-light);
|
||||
--fw-normal: var(--p-fw-normal);
|
||||
--fw-medium: var(--p-fw-medium);
|
||||
--fw-bold: var(--p-fw-bold);
|
||||
}
|
||||
.text-light {
|
||||
font-weight: var(--fw-light);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user