# CSS in CN1Libs

DevFeed: [CSS in CN1Libs](<https://devfeed.tech/articles/css-in-cn1libs-19275.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/css-in-cn1libs/>)

Author: Steve Hannah

Published: 2020-02-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Library](<https://devfeed.tech/topics/library.md>), [ui](<https://devfeed.tech/topics/ui.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [css](<https://devfeed.tech/tags/css.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [library](<https://devfeed.tech/tags/library.md>), [module](<https://devfeed.tech/tags/module.md>), [project](<https://devfeed.tech/tags/project.md>), [themes](<https://devfeed.tech/tags/themes.md>)

## AI overview

This tutorial explains how to include CSS in Codename One library projects so styles can be distributed inside a cn1lib. It also describes automatically installing and refreshing a library in an application project during development.

## Source excerpt

We've just added support for including CSS inside of Codename One library projects so that CSS styles can now be distributed inside a cn1lib. This opens up a world of possibilities for creating module UI libraries and themes. How it works To begin, you just need to add a "css" directory inside your Codename One Library project, with a "theme.css" file in it. Add your CSS styles into the theme.css file, and build the library project.