Skip to content

Commit 5236865

Browse files
committed
feat: add soft text variation
1 parent 8aee75d commit 5236865

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/components/all/src/text/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type TextVariation = "small" | "bold" | "link" | "link_hidden";
88

99
export interface TextProps extends React.HTMLAttributes<HTMLElement> {
1010
margin?: boolean;
11-
type?: "huge" | keyof Pick<ReactHTML, "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p">;
11+
type?: "huge" | "soft" | keyof Pick<ReactHTML, "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p">;
1212
variation?: TextVariation | TextVariation[];
1313
as?: keyof ReactHTML | React.ReactElement;
1414
}
@@ -44,6 +44,7 @@ export const Text = ({
4444
let value: keyof ReactHTML;
4545

4646
switch (type) {
47+
case "soft":
4748
case "huge": {
4849
value = "h1";
4950
break;

packages/components/all/src/text/styles/index.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
--font-size: 60px;
5757
}
5858

59+
.soft {
60+
--color: #718096;
61+
}
62+
5963
// Variations
6064

6165
.small {

0 commit comments

Comments
 (0)