Skip to main content

Kotti bootswatch theme / theme generator

Project description

Bootswatch theme and theme generator for Kotti.

This theme and the generated themes supersede css files of the js.bootstrap and Kotti via fanstatic’s supersedes and rollup mechanism.

Development happens at https://github.com/mete0r/kotti_bootswatch

Basic usage: predefined bootswatch themes

To enable the extension in your Kotti site, activate the configurator:

[app:kotti]

...

kotti.configurators =
    ...
    kotti_bootswatch.kotti_configure  # enable this extension

# Use predefined `darkly' bootswatch theme
kotti_bootswatch.theme = darkly

...

[filter:fanstatic]
use = egg:fanstatic#fanstatic

# fanstatic rollup should be enabled
rollup = True

...

Advanced usage: generate and use a bootswatch-based themes

You can generate bootswatch-based themes:

pcreate -s kotti_bootswatch mytheme
cd mytheme
sh quickstart.sh amelia  # use `amelia' bootswatch theme as a base theme

Read generated README.rst for more information:

cat mytheme/README.rst

To use the generated theme in your Kotti site:

[app:kotti]

...

kotti.configurators =
    ...
    mytheme.kotti_configure  # enable this extension

[filter:fanstatic]
use = egg:fanstatic#fanstatic

# fanstatic rollup should be enabled
rollup = True

Caveat

Generated themes contains less files (static/kotti/*.less) to override Kotti css files, i.e. base/view/edit/upload.css. These less files are introduced to adapt the Kotti css files to the bootstrap(or bootswatch) variables.

So if the original css files in the Kotti changes, the less files should be changed too.

Development

Contributions to kotti_bootswatch are highly welcome. Just clone its Github repository and submit your contributions as pull requests.

History

0.1.2 (2014-12-31)

  • Specify minify as a requirement in the generated README.rst

  • Generate separate README files for user/maintainer

0.1.1 (2014-12-31)

  • Generate/use minified css files.

0.1.0 (2014-12-29)

  • Create package with pcreate -s kotti kotti_bootswatch.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kotti_bootswatch-0.1.2.zip (947.1 kB view details)

Uploaded Source

File details

Details for the file kotti_bootswatch-0.1.2.zip.

File metadata

File hashes

Hashes for kotti_bootswatch-0.1.2.zip
Algorithm Hash digest
SHA256 81e647397378194270722d8bc1e6bbfa81bab4de7677e7952df93ebc17ca17fe
MD5 c348b116f62cf9a83fdd45c6d41906c8
BLAKE2b-256 daa4df8428d23bc0230ea7b61bd641f27c75f8cdae40452f7864d171942ca42b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page