GithubHelp home page GithubHelp logo

alexisfuentes / stylus-css-framework Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nuzkito/stylus-css-framework

0.0 2.0 0.0 541 KB

Framework de Stylus

License: MIT License

JavaScript 2.54% CSS 73.77% HTML 23.68%

stylus-css-framework's Introduction

Stylus CSS Framework

Un framework de CSS construido con Stylus. Puedes tomarlo como base para crear nuevos proyectos. Si has creado algún mixin o quieres proponer mejoras, envía un pull request ;)

Instalación

tylus requiere instalar Nodejs.

Se incluye un archivo de Gulp para ejecutar Stylus. Para instalarlo ejecuta:

npm install -g gulp
npm install

Y para ejecutarlo tan solo haz:

gulp

Organización

Todos los archivos de Stylus están en la carpeta Stylus, organizados de la siguiente forma:

index.styl

base/
        base.styl
        fonts.styl
        animations.styl
        utility.styl
        mixins.styl
        variables.styl
        mixins/
                grid.styl
                triangles.styl
                otros mixins...

components/
        buttons.styl
        grid.styl
        icons.styl
        otros componentes...

lib/
        normalize.styl
        otros archivos externos...

En la carpeta assets se guardarán todos los assets necesarios (imágenes, fuentes, etc.). El CSS resultante también se almacena en ese directorio.

index.styl

En este archivo tan solo se hacen @import a los archivos necesarios. Se trata de hacerlo lo más modular y reusable posible por lo que cada cosa estará en un archivo. Si en un futuro proyecto no necesitas algunos de los componentes, tan solo comenta o elimina los @import para que no se incluyan en el CSS final.

base/variables.styl

Lo ideal es que todo se pueda configurar desde aquí. Tipografías, colores principales, tamaños, medidas de las mediaqueries, etc.

Cuando hagas un módulo crea variables de configuración iniciales, pero con el operador de asignación condicional:

$iconFontFamily ?= 'icomoon'

Así podrá ser sobreescrito desde el archivo de variables.

stylus-css-framework's People

Contributors

nuzkito avatar

Watchers

James Cloos avatar Alexis Fuentes avatar

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.