<commit_before>const markdoc = require("@urbit/markdoc");

module.exports = {
  presets: [require("@urbit/foundation-design-system/tailwind.config")],
  content: {
    files: [
      "./node_modules/@urbit/foundation-design-system/**/*.js",
      "./pages/**/*.{js,ts,jsx,tsx}",
      "./components/**/*.{js,ts,jsx,tsx}",
      "./content/**/*.md",
    ],
    transform: {
      md: (content) => {
        const parsed = markdoc.parse(content);
        const transform = markdoc.transform(parsed);
        return markdoc.renderers.html(transform);
      },
    },
  },
  plugins: [require("@tailwindcss/aspect-ratio")],
};<commit_msg>tailwind.config: theme implementation with json imports<commit_after>const markdoc = require("@urbit/markdoc");
const themeSwapper = require("tailwindcss-theme-swapper");
const { base, dark } = require("@urbit/foundation-design-system/themes");

module.exports = {
  content: {
    files: [
      "./node_modules/@urbit/foundation-design-system/**/*.js",
      "./pages/**/*.{js,ts,jsx,tsx}",
      "./components/**/*.{js,ts,jsx,tsx}",
      "./content/**/*.md",
    ],
    transform: {
      md: (content) => {
        const parsed = markdoc.parse(content);
        const transform = markdoc.transform(parsed);
        return markdoc.renderers.html(transform);
      },
    },
  },
  plugins: [
    require("@tailwindcss/aspect-ratio"),
    themeSwapper({
      themes: [
        {
          name: "base",
          selectors: [":root"],
          theme: base,
        },
        {
          name: "dark",
          selectors: [".dark"],
          mediaQuery: "@media (prefers-color-scheme: dark)",
          theme: dark,
        },
      ],
    }),
  ],
};
{'fraction_non_alphanumeric': 0.19621749408983452, 'fraction_numerical': 0.0, 'mean_word_length': 2.4202020202020202, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 5, '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': '1732783', 'n_tokens_mistral': 548, 'n_tokens_neox': 552, 'n_words': 78}