-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update token colors, fonts, sizes, add docs (#1)
* feat: update token colors, fonts, sizes, add docs Addresses core issues 3263, 3264, 3265 * docs: readme update * remove: Tailwind * docs: update Storybook config * add: minimal CSS reset * chore: update formatting with Prettier
- Loading branch information
1 parent
c903734
commit b414b06
Showing
35 changed files
with
1,195 additions
and
595 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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Bloom UI-seeds | ||
# Bloom UI Seeds | ||
|
||
This package is the home of the core UI components for the Bloom affordable housing system, meant to be imported from one or more applications that provide the end-user interface. |
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,9 @@ | ||
import React from "react" | ||
|
||
export const Link = (props) => { | ||
return ( | ||
<a href={props.href} style={{ color: "var(--link-color)" }}> | ||
{props.children} | ||
</a> | ||
) | ||
} |
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,21 @@ | ||
import React from "react" | ||
|
||
export const Swatch = (props: { color: string; border?: boolean; label?: string }) => ( | ||
<div style={{ display: "inline-block", textAlign: "center" }}> | ||
<span | ||
style={{ | ||
backgroundColor: `var(--${props.color})`, | ||
width: "var(--bloom-s6)", | ||
borderRadius: "var(--bloom-rounded-sm)", | ||
display: "block", | ||
borderWidth: "1px", | ||
borderStyle: "solid", | ||
borderColor: props.border ? "var(--bloom-color-gray-500)" : "transparent", | ||
}} | ||
title={props.color} | ||
> | ||
| ||
</span> | ||
{props.label && <span>{props.label}</span>} | ||
</div> | ||
) |
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,15 @@ | ||
:root { | ||
--link-color: #1EA7FD; | ||
} | ||
|
||
.sbdocs-table { | ||
width: 100%; | ||
} | ||
|
||
.sbdocs-table thead tr th:first-child { | ||
width: 38%; | ||
} | ||
|
||
.sbdocs-content { | ||
max-width: 1200px !important; | ||
} |
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 +1 @@ | ||
export * from "./src/expandableText/ExpandableText"; | ||
export * from "./src/expandableText/ExpandableText" |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
plugins: { | ||
autoprefixer: {}, | ||
}, | ||
} |
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,18 @@ | ||
@font-face { | ||
font-family: 'Lato'; | ||
font-style: normal; | ||
font-weight: 400; | ||
font-display: swap; | ||
src: url(./lato-latin-400-normal.woff2) format('woff2'); | ||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; | ||
} | ||
|
||
/* latin */ | ||
@font-face { | ||
font-family: 'Lato'; | ||
font-style: normal; | ||
font-weight: 700; | ||
font-display: swap; | ||
src: url(./lato-latin-700-normal.woff2) format('woff2'); | ||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; | ||
} |
Binary file not shown.
Binary file not shown.
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,35 @@ | ||
@font-face { | ||
font-family: 'Noto Serif'; | ||
font-style: italic; | ||
font-weight: 400; | ||
font-display: swap; | ||
src: url(./noto-serif-latin-400-italic.woff2) format('woff2'); | ||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Noto Serif'; | ||
font-style: italic; | ||
font-weight: 700; | ||
font-display: swap; | ||
src: url(./noto-serif-latin-700-italic.woff2) format('woff2'); | ||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Noto Serif'; | ||
font-style: normal; | ||
font-weight: 400; | ||
font-display: swap; | ||
src: url(./noto-serif-latin-400-normal.woff2) format('woff2'); | ||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Noto Serif'; | ||
font-style: normal; | ||
font-weight: 700; | ||
font-display: swap; | ||
src: url(./noto-serif-latin-700-normal.woff2) format('woff2'); | ||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.