summaryrefslogtreecommitdiff
path: root/scss/custom-properties/typography
diff options
context:
space:
mode:
authorJoe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com>2024-01-19 09:33:11 +0000
committerGitHub <noreply@github.com>2024-01-19 09:33:11 +0000
commit7140956da0820d4b818119eff7dfc72345f3328e (patch)
tree503e1129a999fe834d2a7b98a4e82bf07264f49f /scss/custom-properties/typography
parenta4f3cb02befe658594c076144be2e5200f36682a (diff)
parent83c3460191a2089b56b091a7f4e09f39ac636e1e (diff)
Merge pull request #65 from joeacarstairs/deployment-staging
Update production
Diffstat (limited to 'scss/custom-properties/typography')
-rw-r--r--scss/custom-properties/typography/_initial.scss41
-rw-r--r--scss/custom-properties/typography/_lg.scss9
-rw-r--r--scss/custom-properties/typography/_md.scss9
-rw-r--r--scss/custom-properties/typography/_mixins.scss12
-rw-r--r--scss/custom-properties/typography/_sm.scss9
-rw-r--r--scss/custom-properties/typography/_xl.scss9
-rw-r--r--scss/custom-properties/typography/_xs.scss9
-rw-r--r--scss/custom-properties/typography/_xxl.scss9
8 files changed, 107 insertions, 0 deletions
diff --git a/scss/custom-properties/typography/_initial.scss b/scss/custom-properties/typography/_initial.scss
new file mode 100644
index 0000000..c9d95da
--- /dev/null
+++ b/scss/custom-properties/typography/_initial.scss
@@ -0,0 +1,41 @@
+@use 'mixins';
+
+@use '../../values/typography' as typography-values;
+
+:root {
+ @include mixins.font-sizes();
+ --border-width: #{typography-values.border-width()};
+
+ --font-serif:
+ Alegreya,
+ -apple-system-ui-serif,
+ Iowan Old Style,
+ Apple Garamond,
+ Baskerville,
+ Sitka, "Sitka Display", "Sitka Heading", "Sitka Text",
+ Times New Roman,
+ Droid Serif,
+ Times,
+ Source Serif Pro,
+ serif,
+ Apple Color Emoji,
+ Segoe UI Emoji,
+ Segoe UI Symbol;
+
+ --font-sans-serif:
+ 'Alegreya Sans',
+ Lato,
+ -apple-system,
+ BlinkMacSystemFont,
+ avenir next,
+ avenir,
+ segoe ui,
+ helvetica neue,
+ helvetica,
+ Cantarell,
+ Ubuntu,
+ roboto,
+ noto,
+ arial,
+ sans-serif;
+}
diff --git a/scss/custom-properties/typography/_lg.scss b/scss/custom-properties/typography/_lg.scss
new file mode 100644
index 0000000..30a3019
--- /dev/null
+++ b/scss/custom-properties/typography/_lg.scss
@@ -0,0 +1,9 @@
+@use 'mixins';
+
+@use '../../values/typography' as typography-values;
+
+:root {
+ @include mixins.font-sizes(lg);
+ --border-width: #{typography-values.border-width(lg)};
+}
+
diff --git a/scss/custom-properties/typography/_md.scss b/scss/custom-properties/typography/_md.scss
new file mode 100644
index 0000000..df49bdd
--- /dev/null
+++ b/scss/custom-properties/typography/_md.scss
@@ -0,0 +1,9 @@
+@use 'mixins';
+
+@use '../../values/typography' as typography-values;
+
+:root {
+ @include mixins.font-sizes(md);
+ --border-width: #{typography-values.border-width(md)};
+}
+
diff --git a/scss/custom-properties/typography/_mixins.scss b/scss/custom-properties/typography/_mixins.scss
new file mode 100644
index 0000000..a370356
--- /dev/null
+++ b/scss/custom-properties/typography/_mixins.scss
@@ -0,0 +1,12 @@
+@use '../../values/typography' as typography-values;
+
+@mixin font-sizes($breakpoint: initial) {
+ --font-size-0: #{typography-values.font-size('0', $breakpoint)};
+ --font-size-1: #{typography-values.font-size('1', $breakpoint)};
+ --font-size-2: #{typography-values.font-size('2', $breakpoint)};
+ --font-size-3: #{typography-values.font-size('3', $breakpoint)};
+ --font-size-4: #{typography-values.font-size('4', $breakpoint)};
+ --font-size-5: #{typography-values.font-size('5', $breakpoint)};
+ --font-size-6: #{typography-values.font-size('6', $breakpoint)};
+}
+
diff --git a/scss/custom-properties/typography/_sm.scss b/scss/custom-properties/typography/_sm.scss
new file mode 100644
index 0000000..e1c3585
--- /dev/null
+++ b/scss/custom-properties/typography/_sm.scss
@@ -0,0 +1,9 @@
+@use 'mixins';
+
+@use '../../values/typography' as typography-values;
+
+:root {
+ @include mixins.font-sizes(sm);
+ --border-width: #{typography-values.border-width(sm)};
+}
+
diff --git a/scss/custom-properties/typography/_xl.scss b/scss/custom-properties/typography/_xl.scss
new file mode 100644
index 0000000..0ddba99
--- /dev/null
+++ b/scss/custom-properties/typography/_xl.scss
@@ -0,0 +1,9 @@
+@use 'mixins';
+
+@use '../../values/typography' as typography-values;
+
+:root {
+ @include mixins.font-sizes(xl);
+ --border-width: #{typography-values.border-width(xl)};
+}
+
diff --git a/scss/custom-properties/typography/_xs.scss b/scss/custom-properties/typography/_xs.scss
new file mode 100644
index 0000000..44d8bbb
--- /dev/null
+++ b/scss/custom-properties/typography/_xs.scss
@@ -0,0 +1,9 @@
+@use 'mixins';
+
+@use '../../values/typography' as typography-values;
+
+:root {
+ @include mixins.font-sizes(xs);
+ --border-width: #{typography-values.border-width(xs)};
+}
+
diff --git a/scss/custom-properties/typography/_xxl.scss b/scss/custom-properties/typography/_xxl.scss
new file mode 100644
index 0000000..1a777dc
--- /dev/null
+++ b/scss/custom-properties/typography/_xxl.scss
@@ -0,0 +1,9 @@
+@use 'mixins';
+
+@use '../../values/typography' as typography-values;
+
+:root {
+ @include mixins.font-sizes(xxl);
+ --border-width: #{typography-values.border-width(xxl)};
+}
+