Skip to content

Commit

Permalink
Customizing Bedrock with SASS Overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
hissy committed Apr 15, 2024
1 parent 7a2751e commit 702cad3
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
4 changes: 3 additions & 1 deletion themes/theme_boilerplate/assets/css/main.css

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions themes/theme_boilerplate/page_theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
namespace Concrete\Package\V9PackageBoilerplate\Theme\ThemeBoilerplate;

use Concrete\Core\Page\Theme\BedrockThemeTrait;
use Concrete\Core\Page\Theme\Color\Color;
use Concrete\Core\Page\Theme\Color\ColorCollection;
use Concrete\Core\Page\Theme\Theme;

class PageTheme extends Theme
Expand All @@ -20,4 +22,13 @@ public function getThemeDescription()
{
return t('A Concrete CMS Theme.');
}

public function getColorCollection(): ?ColorCollection
{
$defaultBedrockColors = $this->getBedrockColorCollection();
$defaultBedrockColors->add(new Color('fun', t('Fun')));
$defaultBedrockColors->remove('dark');

return $defaultBedrockColors;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@import url(//fonts.googleapis.com/css?family=Fredoka+One);
@import url(//fonts.googleapis.com/css2?family=Bellota+Text:wght@400;700&display=swap);

$primary: #375d84;
$secondary: #eb7724;
$light: #fff;
$body-bg: #ffd89f;
$fun: #ec008c;
$light-blue: #8bb2ff;

$theme-colors: (
'primary': $primary,
'secondary': $secondary,
'light': $light,
);

$custom-colors: (
'fun': $fun,
);

$theme-colors: map-merge($theme-colors, $custom-colors);

$headings-font-family: "Fredoka One";
$headings-color: $light-blue;
$headings-font-weight: 400;

$font-family-base: "Bellota Text";
$font-weight-base: 500;
$font-size-root: 20px;
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import "variables";
@import "@concretecms/bedrock/assets/bedrock/scss/frontend";

0 comments on commit 702cad3

Please sign in to comment.