From 72192c53bbdbe0870fe5a9b492b797a69fc960c7 Mon Sep 17 00:00:00 2001 From: Aitor Brazaola Date: Thu, 14 Sep 2017 09:54:24 +0200 Subject: [PATCH] Added primary and secondary typographies to theme config --- .../Resources/assets/scss/_variables/_typography.scss | 2 ++ .../Resources/templates/partials/custom_styles.html.twig | 2 ++ .../Symfony/DependencyInjection/Configuration.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/LIN3S/PatternLibraryBuilder/Resources/assets/scss/_variables/_typography.scss b/src/LIN3S/PatternLibraryBuilder/Resources/assets/scss/_variables/_typography.scss index 3619493..391b796 100644 --- a/src/LIN3S/PatternLibraryBuilder/Resources/assets/scss/_variables/_typography.scss +++ b/src/LIN3S/PatternLibraryBuilder/Resources/assets/scss/_variables/_typography.scss @@ -31,3 +31,5 @@ $line-height-open-sans-font-size-16: 22px; $line-height-open-sans-font-size-15: 18px; $line-height-open-sans-font-size-14: 18px; $line-height-open-sans-font-size-12: 16px; +$primary-typography: 'Open Sans', sans-serif; +$secondary-typography: 'Open Sans', sans-serif; diff --git a/src/LIN3S/PatternLibraryBuilder/Resources/templates/partials/custom_styles.html.twig b/src/LIN3S/PatternLibraryBuilder/Resources/templates/partials/custom_styles.html.twig index 447617f..a5b758a 100644 --- a/src/LIN3S/PatternLibraryBuilder/Resources/templates/partials/custom_styles.html.twig +++ b/src/LIN3S/PatternLibraryBuilder/Resources/templates/partials/custom_styles.html.twig @@ -1,5 +1,7 @@ diff --git a/src/LIN3S/PatternLibraryBuilder/Symfony/DependencyInjection/Configuration.php b/src/LIN3S/PatternLibraryBuilder/Symfony/DependencyInjection/Configuration.php index dadab7d..347bcec 100644 --- a/src/LIN3S/PatternLibraryBuilder/Symfony/DependencyInjection/Configuration.php +++ b/src/LIN3S/PatternLibraryBuilder/Symfony/DependencyInjection/Configuration.php @@ -78,5 +78,7 @@ private function themeProperties(ArrayNodeDefinition $themeNode) : ArrayNodeDefi const THEME_PROPERTIES = [ 'color_primary', + 'primary_typography', + 'secondary_typography', ]; }