cu-boulder / boulder_d9_base
University of Colorado Boulder base theme
Installs: 202
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 0
Open Issues: 30
Language:CSS
Type:drupal-custom-theme
- dev-main
- 20250219
- 20250205
- 20250129
- 20250121
- 20250115
- 20241211
- 20241204
- 20241122
- 20241120
- 20241118
- 20241113
- 20241030
- 20241023
- 20241017
- 20241009
- 20241002
- 20240925
- 20240918
- 20240911
- 20240904
- 20240821
- 20240814
- 20240805
- 20240725
- 20240719
- 20240711
- 20240612
- 20240604
- 20240513
- 20240221
- 20240212
- 20231212
- 20230718
- 20230707
- 20230323
- 20230307
- 20230209
- 0.20230110
- 0.20221109
- dev-release/20250219
- dev-issue/1392
- dev-css-weights
- dev-issue/1556
- dev-issue/1461
- dev-footer-style-fixes
- dev-issue/1426
- dev-issue/1308
- dev-issue/1337
- dev-issue/1331
- dev-issue/1313
- dev-blcok-styles-refactor
- dev-issue/985
- dev-issue/entities/129
- dev-issue/854
- dev-issue/577
- dev-issue/562
This package is auto-updated.
Last update: 2025-02-19 18:06:36 UTC
README
Drupal 10+ Base theme for CU Boulder web properties
Installation
Add below to composer.json
require section:
"cu-boulder/boulder_base" : "dev-main"
Add to repositories section:
{
"type": "git",
"url" : "https://github.com/CuBoulder/tiamat-theme.git"
}
Note: This theme is installed and set as the default with the profile. The theme is not intended to be used without the profile or other cu-boulder/*
modules.
To install a local version of Nextpress, follow the steps outlined in the tiamat-project-template
Theme Options
Under /admin/appearance/settings/...
you can manage various theme settings.
- Set default values for the theme in the
boulder_base.settings.yml
- Add more settings to the theme in
hook_system_theme_settings_alter
in boulder_base.theme
Linting
We are using stylelint and eslint
npm install # install linters
npm run stylelint # lint css
npm run eslint # lint js
Linting is run automatically on all pull requests, however you can lint files locally too.
- configure eslint in
.eslintrc.json
- configure styleint in
.stylelint.json
Directory Structure
.github Directory
Contains the github actions workflow for linting
config
Contains the default values for the theme settings. If new theme settings are added, update boulder_base.settings.yml with the default values. You can get the configuration by running lando drush config-get boulder_base.settings
and copying the output into the file.
css
- put styles relating the custom paragraphs in css/paragraphs
- put styles from the styleguide in css/styleguide
js
Put JavaScript files here
templates
Twig template overrides go here including those for the custom page and paragraph types. The packages dedicated to the page and paragraph types should only contain config.
boulder_base.info.yml
- Define regions
- Add styles to the ckeditor
- Add globally included libraries
boulder_base.libraries.yml
Define libraries
boulder_base.theme
Add theme hooks
boulder_base.breakpoints.yml
This file is used by the Breakpoint and Responsive Image module. These modules are used for making images inserted with the text editor responsive.