Browse Source

init sass

master
neko 1 month ago
parent
commit
18cf3a5ca9
7 changed files with 1860 additions and 33 deletions
  1. +6
    -0
      .eleventy.js
  2. +1
    -0
      package.json
  3. +2
    -0
      src/_layouts/default.liquid
  4. +9
    -0
      src/assets/css/abstracts/_pallete.scss
  5. +4
    -0
      src/assets/css/base/_container.scss
  6. +3
    -0
      src/assets/css/main.scss
  7. +1835
    -33
      yarn.lock

+ 6
- 0
.eleventy.js View File

@ -1,6 +1,12 @@
const markdown_it = require('markdown-it');
const sass_plugin = require('eleventy-plugin-sass')
module.exports = function(c) {
// add sass plugin
c.addPlugin(sass_plugin, {
watch: ['src/**/*.{scss,sass}', '!node_modules/**']
});
// add markdown filter & shortcode
c.addFilter('md', markdown);
c.addPairedShortcode('md', markdown);


+ 1
- 0
package.json View File

@ -7,6 +7,7 @@
"license": "GPL-3.0",
"dependencies": {
"@11ty/eleventy": "^0.11.1",
"eleventy-plugin-sass": "^1.1.1",
"markdown-it": "^12.0.3"
},
"scripts": {


+ 2
- 0
src/_layouts/default.liquid View File

@ -17,6 +17,8 @@
<meta property="og:title" content="{% if title %}{{ title }} - neko{% else %}neko{% endif %}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ page_url }}">
<link rel="stylesheet" href="/assets/css/main.css">
</head>
<body>
<div class="container">


+ 9
- 0
src/assets/css/abstracts/_pallete.scss View File

@ -0,0 +1,9 @@
$clr-bg: #24283b;
$clr-fg: #a9b1d6;
$clr-red: #f7768e;
$clr-yellow: #e0af68;
$clr-lime: #9ece6a;
$clr-cyan: #449dab;
$clr-blue: #7aa2f7;
$clr-magenta: #ad8ee6;

+ 4
- 0
src/assets/css/base/_container.scss View File

@ -0,0 +1,4 @@
body {
background: $clr-bg;
color: $clr-fg;
}

+ 3
- 0
src/assets/css/main.scss View File

@ -0,0 +1,3 @@
@import "abstracts/pallete";
@import "base/container";

+ 1835
- 33
yarn.lock
File diff suppressed because it is too large
View File


Loading…
Cancel
Save