Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sass support and fonts #33

Merged
merged 12 commits into from
Nov 8, 2024
7 changes: 2 additions & 5 deletions eleventy.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
import { EleventyRenderPlugin } from "@11ty/eleventy";
import fluidPlugin from "eleventy-plugin-fluid";
import fluidSassPlugin from "eleventy-plugin-fluid-sass";
import footnotesPlugin from "eleventy-plugin-footnotes";

export default function eleventy(eleventyConfig) {
eleventyConfig.addPlugin(EleventyRenderPlugin);
eleventyConfig.addPlugin(fluidSassPlugin);
eleventyConfig.addPlugin(footnotesPlugin);
eleventyConfig.addPlugin(fluidPlugin);

eleventyConfig.addPassthroughCopy({
"src/admin/config.yml": "admin/config.yml"
});

eleventyConfig.addPassthroughCopy({
"src/assets": "assets"
});
eleventyConfig.addPassthroughCopy({ "src/assets": "assets" });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this for?

eleventyConfig.addPassthroughCopy({ "src/assets/fonts": "assets/fonts" });

return {
dir: {
Expand Down
152 changes: 0 additions & 152 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"homepage": "https://github.com/inclusive-design/standards.idrc.ocadu.ca#readme",
"dependencies": {
"@11ty/eleventy": "^3.0.0",
"eleventy-plugin-fluid-sass": "^1.0.0",
"eleventy-plugin-fluid": "github:fluid-project/eleventy-plugin-fluid#feat/overhaul-i18n",
"eleventy-plugin-footnotes": "^0.11.0",
"rimraf": "^6.0",
Expand Down
20 changes: 20 additions & 0 deletions src/assets/styles/abstracts/_variables.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:root {
/** Typography **/
--family-sans-serif: "Source Sans 3", sans-serif;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;

/** Colours **/

--blue: hsla(194, 60%, 59%, 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefix colours with --color- for consistency. It's helpful for grouping variables.

--green: hsla(163, 35%, 49%, 1);
--yellow: hsla(42, 92%, 70%, 1);
--orange: hsla(25, 76%, 64%, 1);
--red: hsla(359, 64%, 63%, 1);
--white: hsla(0, 0%, 100%, 1);

--indigo-100: hsla(244, 100%, 98%, 1);
--indigo-200: hsla(244, 93%, 93%, 1);
}
18 changes: 0 additions & 18 deletions src/assets/styles/abstracts/_variables.scss

This file was deleted.

14 changes: 14 additions & 0 deletions src/assets/styles/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@charset "UTF-8";

/* Abstracts */

@import "./abstracts/_variables.css";

/* Base */

@import "./base/_reset.css";
@import "./base/_base.css";

h1 {
line-height: 1;
}
11 changes: 0 additions & 11 deletions src/assets/styles/app.scss

This file was deleted.

5 changes: 5 additions & 0 deletions src/assets/styles/base/_base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "./_fonts.css";

h1 {
font-family: var(--family-sans-serif);
}
5 changes: 0 additions & 5 deletions src/assets/styles/base/_base.scss

This file was deleted.

Loading
Loading