Coder Social home page Coder Social logo

bootstrap5_scss's Introduction

Bootstrap 5.0.2 for Dart JS/AngularDart

This project contains all the bootstrap scss source files. This project will be useful to create new themes using scss.

bootstrap5_scss is a scss-powered version of [Bootstrap](https://github.com/twbs/bootstrap), ready to drop right into your scss powered applications.

Usage

1 - Create a new project with next structure:

[project_root]
  ├─ pubspec.yaml
  ├─ web
  │  ├─ index.html
  │  ├─ _variables.scss
  │  ├─ theme.scss
  │  └─ ... other files and folders ...
  └─ lib
     └─ ... lib files and folders ...

2 - In the pubspec.yaml file add the bootstrap5_scss and scss_builder dependencies as bellow:

name: bootstrap5_scss_example # change this line to have your library name
description: An absolute bare-bones web app.

environment:
  sdk: '>=2.0.0 <3.0.0'

dependencies:
  bootstrap5_scss: ^5.0.2

dev_dependencies:
  build_runner: ^0.10.0
  build_web_compilers: ^0.4.0
  scss_builder: ^2.0.0

3 - Then in _variables.scss add the variables you want to modify

//== Colors

$primary:          #e72b42;
$secondary:        #73A839;
$info:             #033C73;
$warning:          #DD5600;
$danger:           #22afc7;

4- In the theme.scss add next code:

include::example/web/theme.scss

5 - Then in the index.html you will add the link to theme.css as bellow:

  <link rel="stylesheet" href="theme.css">

so you will end up with an index.html file like next one:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="scaffolded-by" content="https://github.com/google/stagehand">
  <title>bootstrap5_scss_sample</title>
  <link rel="stylesheet" href="theme.css">
  <link rel="icon" href="favicon.ico">
  <script defer src="main.dart.js"></script>
</head>

<body>

<button class="btn btn-primary">Bootstrap Primary Button</button>
<button class="btn btn-secondary">Bootstrap Secondary Button</button>
<button class="btn btn-success">Bootstrap Success Button</button>
<button class="btn btn-info">Bootstrap Info Button</button>
<button class="btn btn-danger">Bootstrap Danger Button</button>
<button class="btn btn-warning">Bootstrap Warning Button</button>

</body>
</html>

6 - Finally to run this project you will need to use next command:

webdev serve

Credits

bootstrap-scss is a friendly fork of bootstrap5_scss which has a number of major contributors:

and a [significant number of other contributors].

The dart port is made by: Luis Vargas

Bugs and feature requests

Have a bug or a feature request to bootstrap core? Please open a new issue at https://github.com/twbs/bootstrap/issues/new.

Have a bug or a feature request to bootstrap_scss dart port? Please open a new issue at https://github.com/Dart-Land/bootstrap5_scss/issues/new.

Copyright and license

Code and documentation copyright 2011-2018 the Bootstrap Authors and Twitter, Inc. Code released under the MIT License. Docs released under Creative Commons.

bootstrap5_scss's People

Watchers

James Cloos avatar SpivEgin 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.