Giter Club home page Giter Club logo

colette-kss-builder's Introduction

Colette kss-builder

Custom Twig.js builder for kss-node designed for Colette.

Custom KSS rules added

KSS is great but some options are missing.

Symbols

To document SVG symbols

// SVG symbols
//
// A collection of svg symbols built with [svgstore](https://www.npmjs.com/package/svgstore).
//
// Symbols: **/*.svg in ../../svg/
//
// Style guide: Symbols

A new option is added to KSS to include SVG symbols bundle in KSS template.

module.exports = {
  svgSprite: `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><symbol viewBox="0 0 32 32" id="symbol-social-youtube" xmlns="http://www.w3.org/2000/svg"><path d="M31.3 8.3c-.4-1.4-1.4-2.4-2.8-2.8-2.4-.7-12.5-.7-12.5-.7s-10 0-12.5.7C2.1 5.9 1.1 6.9.7 8.3.2 10.8 0 13.4 0 16c0 2.6.2 5.2.7 7.7.4 1.4 1.4 2.4 2.8 2.8 2.5.7 12.5.7 12.5.7s10 0 12.5-.7c1.4-.4 2.4-1.4 2.8-2.8.5-2.5.7-5.1.7-7.7 0-2.6-.2-5.2-.7-7.7zM12.8 20.8v-9.6l8.4 4.8-8.4 4.8z"/></symbol></svg>`,
  svgPrefix: 'symbol',
}

It’s recommanded to use a tool to build your svg sprite.

Integrate your local version into Colette

  1. Run npm pack to generate a compressed .tgz file of the project (e.g colette-kss-builder-5.4.0.tgz) on the root of the project
  2. On Colette's side, point to that file on the package.json and run npm install
  3. /!\ Be careful to not commit this file and/or the colette-kss-file path

colette-kss-builder's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar eguyot avatar j0k3r avatar nredoulez avatar ryuran avatar tangurb1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colette-kss-builder's Issues

Make Colette-kss-builder more universal

Colette-kss-builder is a nice Kss builder but branded as 20 Minutes.
We should move every brand elements as config to Make it more reusable for open source project.

Prefix every css custom properties

To avoid conflict with css custom properties of documented css we should prefix all of theme.
Idealy by a post processer but currently postcss-prefix-variables do not exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.