(all-project-keywords path)
Pulls out all the keywords for the given path (but not split e.g :div.rounded.p-4 not [:rounded :p-4])
Pulls out all the keywords for the given path (but not split e.g :div.rounded.p-4 not [:rounded :p-4])
(convert-pseudo-classes classes)
Converts hiccup class reference to css or what we expect in sail's lookup table e.g :hover:red-400 -> :hover:red-400:hover
Converts hiccup class reference to css or what we expect in sail's lookup table e.g :hover:red-400 -> :hover\:red-400:hover
Contains the dirwatch process to control sail's watching for compilation process
Contains the dirwatch process to control sail's watching for compilation process
(generate-styles-with path css-file)
Generate Tailwind CSS and append the provided css-file on the end.
Generate Tailwind CSS and append the provided css-file on the end.
(prefix n)
Include . for class names, ignore for reserved words like 'html'.
Include . for class names, ignore for reserved words like 'html'.
(purge-and-generate-styles output {:keys [paths css-file] :as opts})
(watch output)
(watch output {:keys [paths] :as opts})
Watch & rebuild styles on file modified, useful when developing to view sites with purged code as you would use in production. Also useful for providing the feedback when manipulating classes in Clojure e.g splitting (str "bg-green-" v).
Takes optional args: :path directory to watch for new uses of css classes (e.g your project code)
Watch & rebuild styles on file modified, useful when developing to view sites with purged code as you would use in production. Also useful for providing the feedback when manipulating classes in Clojure e.g splitting (str "bg-green-" v). Takes optional args: :path directory to watch for new uses of css classes (e.g your project code)
(with-responsive-prefix smap prefix screen-width)
Apply a min-width media query an class prefix to styles e.g md:text-gray-700
Apply a min-width media query an class prefix to styles e.g md:text-gray-700
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close