<commit_before>(ns trek.style
  (:require [garden-mower.core]
            [garden.core]
            [garden.selectors]
            [clojure.java.io :as io]))

(defonce tailwind-css
  (delay (garden-mower.core/parse (slurp (io/resource "public/tailwind-utilities.css")))))

(defn attributes
  [& selectors]
  (apply garden-mower.core/attributes @tailwind-css selectors))

(garden.selectors/defselector pre)

(defmacro css
  []
  (garden.core/css
   {:pretty-print? false}
   [[:body (attributes :.bg-gray-700)]
    [:.container (attributes :.mx-auto :.bg-green-400 :.mt-2)]
    [:input (attributes :.border :.border-blue-900 :.border-3 :.bg-gray-400 :.mx-2 :.p-1 :.rounded)]
    #_ [:button (attributes :.border :.border-blue-300 :.rounded :.bg-gray-200 :.px-2 :.py-1)]
    [:.terminal
     (attributes :.p-2 :.border :.border-4 :.border-white :.mt-12 :.overflow-x-hidden)
     [(pre (garden.selectors/nth-child "2n")) (attributes :.bg-green-500)]]
    [:.tab-button (attributes :.mr-2 :.mt-1 :.text-lg)]
    ]))

(comment


  (garden.core/css
   {:pretty-print? false}
   [])


  )<commit_msg>Remove used style<commit_after>(ns trek.style
  (:require [garden-mower.core]
            [garden.core]
            [garden.selectors]
            [clojure.java.io :as io]))

(defonce tailwind-css
  (delay (garden-mower.core/parse (slurp (io/resource "public/tailwind-utilities.css")))))

(defn attributes
  [& selectors]
  (apply garden-mower.core/attributes @tailwind-css selectors))

(garden.selectors/defselector pre)

(defmacro css
  []
  (garden.core/css
   {:pretty-print? false}
   [[:body (attributes :.bg-gray-700)]
    [:.container (attributes :.mx-auto :.bg-green-400 :.mt-2)]
    [:input (attributes :.border :.border-blue-900 :.border-3 :.bg-gray-400 :.mx-2 :.p-1 :.rounded)]
    [:.terminal
     (attributes :.p-2 :.border :.border-4 :.border-white :.mt-12 :.overflow-x-hidden)
     [(pre (garden.selectors/nth-child "2n")) (attributes :.bg-green-500)]]
    [:.tab-button (attributes :.mr-2 :.mt-1 :.text-lg)]]))

(comment


  (garden.core/css
   {:pretty-print? false}
   [])


  )
{'fraction_non_alphanumeric': 0.19904306220095694, 'fraction_numerical': 0.028708133971291867, 'mean_word_length': 2.923076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4509729', 'n_tokens_mistral': 867, 'n_tokens_neox': 803, 'n_words': 148}