Skip to content

Commit e53ffab

Browse files
committed
additional foundational files in example project
1 parent 09ea7e1 commit e53ffab

File tree

5 files changed

+124
-0
lines changed

5 files changed

+124
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@use 'lib/fonts';
2+
3+
// examples of proper loading of 3rd party fonts:
4+
//
5+
// @include fonts.embed-font('Sans', 'SansWeb-Regular', normal, normal);
6+
// @include fonts.embed-font('Sans', 'SansWeb-RegularItalic', normal, italic);
7+
// @include fonts.embed-font('Sans', 'SansWeb-Bold', bold, normal);
8+
//
9+
// then define the font in config/_fonts.scss:
10+
//
11+
// $sans: 'Sans', $system;
12+
//
13+
// and calling those fonts properly:
14+
//
15+
// @mixin sans {
16+
// font-family: $sans;
17+
// }
18+
19+
// @mixin sans-italic {
20+
// font-family: $sans;
21+
// font-style: italic;
22+
// }
23+
24+
// @mixin sans-bold {
25+
// font-family: $sans;
26+
// font-weight: bold;
27+
// }
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
@use 'lib/colors' as *;
2+
3+
// Color Roles
4+
:root {
5+
--body-color: #{color('white')};
6+
--text-color: #{color('black')};
7+
8+
--link-color: #{color('blue')};
9+
--link-color-hover: #{color('aqua')};
10+
11+
--border-color: #{color('gray')};
12+
13+
--tap-highlight-color: rgba(0, 0, 0, 0.35);
14+
--highlight-color: #{color('blue')}; // used for text selections, etc.
15+
16+
--placeholder-txt: #B2B2B2;
17+
18+
// --error-bg: #FFE6E6;
19+
// --error-txt: #E04646;
20+
// --error-border: #E04646;
21+
//
22+
// --warning-bg: #FCF7D8;
23+
// --warning-txt: #B29804;
24+
// --warning-border: #B29804;
25+
//
26+
// --info-bg: #E8F3FF;
27+
// --info-txt: #537DF6;
28+
// --info-border: #537DF6;
29+
//
30+
// --success-bg: #DAFCE1;
31+
// --success-txt: #0CA129;
32+
// --success-border: #0CA129;
33+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@use 'config/base-font' as *;
2+
@use 'lib/units' as *;
3+
@use 'lib/lock' as *;
4+
@use 'lib/media-queries' as *;
5+
6+
:root {
7+
--font-size-xl: #{rem(44)};
8+
--font-size-l: #{rem(32)};
9+
--font-size-m: #{rem(24)};
10+
--font-size-s: #{rem($base-font-size)};
11+
--font-size-xs: #{rem(14)};
12+
13+
// @media #{query('s')} {
14+
// --font-size-l: #{lock(rem(12), rem(20), breakpoint('s'), breakpoint('l'))};
15+
// }
16+
17+
// @media #{query('l')} {
18+
// --font-size-l: #{rem(20)};
19+
// }
20+
}
21+
22+
html {
23+
font-size: em($base-font-size, 16);
24+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@use 'config/dimensions' as *;
2+
@use 'lib/units' as *;
3+
@use 'lib/lock' as *;
4+
@use 'lib/media-queries' as *;
5+
6+
:root {
7+
--maxwidth: #{$maxwidth};
8+
9+
--gutter: #{rem(10)};
10+
11+
--h-spacing: #{rem(20)};
12+
13+
@media #{query('s')} {
14+
--h-spacing: #{rem(32)};
15+
}
16+
17+
@media #{query('m')} {
18+
--h-spacing: #{rem(44)};
19+
}
20+
21+
@media #{query('l')} {
22+
--h-spacing: #{rem(56)};
23+
}
24+
25+
@media #{query('xl')} {
26+
--h-spacing: #{rem(70)};
27+
}
28+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Borders
2+
//
3+
// Borders are available from variables. Usage in Sass looks like
4+
// `border: $border-width $border-style $border-color;` or `border: $border;`
5+
// or `border-radius: $border-radius;`
6+
7+
// see _1_base/properties/_colors for border colors
8+
9+
$border-style: solid;
10+
$border-width: 1px;
11+
$border-radius: 3px;
12+
$border: $border-width $border-style var(--border-color);

0 commit comments

Comments
 (0)