Skip to content

Commit 8ca7225

Browse files
author
Dave Ferris
committed
UIDS-16 create Form and related components
1 parent 5107e85 commit 8ca7225

File tree

19 files changed

+651
-114
lines changed

19 files changed

+651
-114
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
/.pnp
66
.pnp.js
77

8+
# distribution
9+
lib
10+
811
# testing
912
/coverage
1013

lib/Card/Card.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

lib/Pill/Pill.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

lib/Pill/Pill.scss

Lines changed: 0 additions & 33 deletions
This file was deleted.

lib/index.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"build-storybook": "build-storybook -s public",
1919
"build-storybook-docs": "build-storybook -s public --docs",
2020
"deploy-storybook": "storybook-to-ghpages",
21+
"prepublishOnly": "yarn build",
2122
"test": "jest"
2223
},
2324
"eslintConfig": {
@@ -70,8 +71,7 @@
7071
"description": "UI Storybook design system",
7172
"files": [
7273
"lib",
73-
"scss",
74-
"src"
74+
"scss"
7575
],
7676
"main": "lib/index.js",
7777
"publishConfig": {

scss/lists.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This should be included directly on the ul element
2+
@mixin ui-remove-list-styles() {
3+
list-style-type: none;
4+
margin: 0;
5+
padding: 0;
6+
7+
li {
8+
margin: 0;
9+
}
10+
}

scss/theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
@import './lists';
12
@import './palette';
23
@import './typography';

scss/typography.scss

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
11
$font-family: Lato, Arial, sans-serif;
2+
$font-weight-light: 200;
3+
$font-weight-normal: 300;
24
$font-size-base: .875rem;
35
$font-weight-bold: 700;
6+
$headings-font-weight: 400;
7+
$headings-font-weight-bold: 700;
8+
9+
@mixin font-type-100() {
10+
font-family: $font-family;
11+
font-size: .75rem;
12+
font-weight: $font-weight-normal;
13+
line-height: 1rem;
14+
}
15+
16+
@mixin font-type-200() {
17+
font-family: $font-family;
18+
font-size: $font-size-base;
19+
font-weight: $font-weight-normal;
20+
line-height: 1.25rem;
21+
}
22+
23+
@mixin font-type-300() {
24+
font-family: $font-family;
25+
// font-size: $font-size-base; -- should base be changed to 1 rem?
26+
font-size: 1rem;
27+
font-weight: $font-weight-normal;
28+
line-height: 1.5rem;
29+
}
30+
31+
@mixin font-type-400() {
32+
font-family: $font-family;
33+
font-size: 1.125rem;
34+
font-weight: $font-weight-bold;
35+
line-height: 1.75rem;
36+
}

0 commit comments

Comments
 (0)