-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
- add button group | ||
- add text | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[bt-text] { | ||
color: hsl(218, 11%, 65%); | ||
font-family: system-ui; | ||
font-size: unset; | ||
font-weight: initial; | ||
margin: initial; | ||
|
||
&[bt-green] { | ||
color: hsl(111, 32%, 66%); | ||
} | ||
|
||
&[bt-red] { | ||
color: hsl(0, 91%, 74%); | ||
} | ||
|
||
&[bt-white] { | ||
color: hsl(216, 12%, 84%); | ||
} | ||
|
||
&[bt-blue] { | ||
color: hsl(217, 93%, 72%); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type { Meta, StoryObj } from '@storybook/web-components'; | ||
import { html } from 'lit'; | ||
|
||
const meta: Meta = { | ||
title: 'BTText', | ||
}; | ||
type Story = StoryObj; | ||
|
||
export default meta; | ||
|
||
export const Default: Story = { | ||
render: () => html`<span bt-text>Example text </span>`, | ||
}; | ||
|
||
export const Green: Story = { | ||
render: () => html`<p bt-text bt-green>Example text </p>`, | ||
}; | ||
|
||
export const Red: Story = { | ||
render: () => html`<h1 bt-text bt-red>Example text </h1>`, | ||
}; | ||
|
||
export const White: Story = { | ||
render: () => html`<h2 bt-text bt-white>Example text </h2>`, | ||
}; | ||
|
||
export const Blue: Story = { | ||
render: () => html`<h3 bt-text bt-blue>Example text </h3>`, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { injectStyles } from '../utils'; | ||
import styles from './Text.css?raw&inline'; | ||
|
||
injectStyles(styles); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters