Skip to content

Commit

Permalink
Added design system tokens and initial build
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpiteri-BCGov committed Aug 28, 2024
1 parent 711905e commit 3506f90
Show file tree
Hide file tree
Showing 27 changed files with 267 additions and 238 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.3.0 August 28, 2024
- Added design tokens from BC design system for use as variables in sass

## 1.2.0 July 17, 2024
- Added Header Template Part
- Added VuePress Site.
Expand Down
2 changes: 1 addition & 1 deletion checklist.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Created at 2024-07-17 11:18 am
Created at 2024-08-28 10:08 am

* [yes] Updated version in composer.json
* [yes] Updated version in style.css or plugin file
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bcgov-theme/design-system-wordpress-theme",
"description": "Design System WordPress Theme",
"version": "1.2.0",
"version": "1.3.0",
"type": "wordpress-theme",
"license": "Apache-2.0",
"repositories": [
Expand Down
56 changes: 30 additions & 26 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/fonts/BCSans-Bold.8f6d33da.woff2
Binary file not shown.
Binary file added dist/fonts/BCSans-Bold.e8313ace.woff
Binary file not shown.
Binary file added dist/fonts/BCSans-BoldItalic.3e0ad839.woff
Binary file not shown.
Binary file added dist/fonts/BCSans-BoldItalic.bc56fa27.woff2
Binary file not shown.
Binary file added dist/fonts/BCSans-Italic.035a3cc8.woff2
Binary file not shown.
Binary file added dist/fonts/BCSans-Italic.f48cfbe1.woff
Binary file not shown.
Binary file added dist/fonts/BCSans-Light.9e36f964.woff2
Binary file not shown.
Binary file added dist/fonts/BCSans-Light.da391b9e.woff
Binary file not shown.
Binary file added dist/fonts/BCSans-LightItalic.cc6b0797.woff2
Binary file not shown.
Binary file added dist/fonts/BCSans-LightItalic.d5e4ab46.woff
Binary file not shown.
Binary file added dist/fonts/BCSans-Regular.907e1e3d.woff2
Binary file not shown.
Binary file added dist/fonts/BCSans-Regular.f5dc3fe0.woff
Binary file not shown.
2 changes: 2 additions & 0 deletions dist/index-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array(), 'version' => '09855cd7d0b1fe847a05');
2 changes: 2 additions & 0 deletions dist/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added dist/index.js
Empty file.
14 changes: 14 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* Enqueues the design system CSS stylesheet on the frontend of the WordPress site.
*
* This function uses the `wp_enqueue_style` function to load the `index.css` file from the `dist/styles` directory
* within the current theme directory.
*
* @since 1.3.0
*/
function enqueue_global_styles() {
$version = filemtime( get_template_directory() . '/dist/index.css' );
wp_enqueue_style( 'design-system-styles', get_template_directory_uri() . '/dist/index.css', array(), $version );
}
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' );
Loading

0 comments on commit 3506f90

Please sign in to comment.