bootstrap_sass 4.1.3+0

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 86

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

bootstrap_sass is a Sass-powered version of [Bootstrap](https://github.com/twbs/bootstrap), ready to drop right into your Sass 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 bootstrap_sass and sass_builder dependencies as bellow:

name: bootstrap_sass_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:
  bootstrap_sass: ^4.1.3

dev_dependencies:
  build_runner: ^0.10.0
  build_web_compilers: ^0.4.0
  sass_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>bootstrap_sass_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-sass 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_sass dart port? Please open a new issue at https://github.com/dart-league/bootstrap_sass/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.

4.1.3

  • upgrade to v4.1.3

4.1.2

  • upgrade to v4.1.2

4.1.0

  • upgrade to v4.1.0

4.0.0

  • upgrade to v4.0.0

4.0.0-beta.2

  • upgrade to v4.0.0-beta.2

4.0.0-beta

  • upgrade to v4.0.0-beta

4.0.0-alpha.6

  • upgrade to v4.0.0-alpha.6

4.0.0-alpha.5

  • upgrade to v4.0.0-alpha.5

4.0.0-alpha.3+5

  • remove sass_transformer and add dart-sass and grinder

4.0.0-alpha.3+3

  • upgrade to sass_transformer 0.1.1

4.0.0-alpha.3+2

  • use sass_transformer 0.1.0 instead dart-sass 0.4.2
  • remove packages path into main sass files

example/README.md

Bootstrap Sass Example

This is a barebones example of how to use bootstrap_sass library.

Running example

To run this example you should use this command:

webdev serve

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  bootstrap_sass: ^4.1.3+0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

Version Uploaded Documentation Archive
4.1.3+0 Nov 18, 2018 Go to the documentation of bootstrap_sass 4.1.3+0 Download bootstrap_sass 4.1.3+0 archive
4.1.3 Oct 3, 2018 Go to the documentation of bootstrap_sass 4.1.3 Download bootstrap_sass 4.1.3 archive
4.1.2 Jul 21, 2018 Go to the documentation of bootstrap_sass 4.1.2 Download bootstrap_sass 4.1.2 archive
4.1.0 Apr 27, 2018 Go to the documentation of bootstrap_sass 4.1.0 Download bootstrap_sass 4.1.0 archive
4.0.0 Apr 3, 2018 Go to the documentation of bootstrap_sass 4.0.0 Download bootstrap_sass 4.0.0 archive
3.3.6 Jan 16, 2016 Go to the documentation of bootstrap_sass 3.3.6 Download bootstrap_sass 3.3.6 archive
4.0.0-beta.2 Dec 3, 2017 Go to the documentation of bootstrap_sass 4.0.0-beta.2 Download bootstrap_sass 4.0.0-beta.2 archive
4.0.0-beta Sep 28, 2017 Go to the documentation of bootstrap_sass 4.0.0-beta Download bootstrap_sass 4.0.0-beta archive
4.0.0-alpha.6 Mar 16, 2017 Go to the documentation of bootstrap_sass 4.0.0-alpha.6 Download bootstrap_sass 4.0.0-alpha.6 archive
4.0.0-alpha.5+1 Feb 24, 2017 Go to the documentation of bootstrap_sass 4.0.0-alpha.5+1 Download bootstrap_sass 4.0.0-alpha.5+1 archive

All 18 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
81
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
86
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: Flutter, web, other

No libraries.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
Dev dependencies
build_runner any
build_test any
build_web_compilers any
sass_builder ^2.1.1