npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@inspatial/tailwind-config

v1.1.0

Published

Tailwind CSS configuration for Inspatial Apps

Downloads

98

Readme

🛠️ InSpatial Tailwind CSS Config

🎨 Elevate your UI with InSpatial's custom Tailwind CSS configurations!

License Core App Cloud Store


🚀 Features

  • InSpatial's new default styling primitives and variables
  • Seamless integration with InSpatial apps or any Tailwind CSS project
  • Optimized for spatial computing and cross-platform development
  • Inspired by default Tailwind configuration

📦 Install InSpatial Tailwind Config

npm install -D @inspatial/tailwind-config tailwindcss

🔧 Usage

Extend your tailwind.config.ts file with InSpatial's custom configuration:

const inSpatialTailwindConfig = require("@inspatial/tailwind-config");

/** @type {import('tailwindcss').Config} */
module.exports = {
  presets: [inSpatialTailwindConfig],
  // Optional: Add project specific configurations e.g
  // content: [],
  // theme: {
  //   extend: {},
  // },
  // ... more configurations
};

📚 Documentation

Good to know

Adding the following configuration values will override InSpatial's Tailwind Config default ones.

- content

By default InSpatial takes a primitive guess at what you might want to include in your content array, however it is recommended that you override this by providing your own content array based on prroject structure and framework. Here's an example of what this might look like if you are using Next.js or similar framework:

content: [
  "./src/**/*.{js,ts,jsx,tsx,mdx}",
  "./pages/**/*.{js,ts,jsx,tsx,mdx}",
  "./components/**/*.{js,ts,jsx,tsx,mdx}",
  "./app/**/*.{js,ts,jsx,tsx,mdx}",
];

NOTE: Do not overide if you are using InSpatial Run, as it will be populated with the correct paths for your project.


Other configuration values are optional, however if you do provide them they will not override InSpatial's defaults but will extend them e.g

- separator

- blocklist

- corePlugins

- safelist

- prefix

etc...

- theme

Theme is multi-faceted because you can override as well as extend InSpatial's defaults.

Recommended: Put your theme configurations inside the extend attribute it will add your configurations to InSpatial's defaults without overidding them which is what we you want to do in most cases.

theme: {
  extend: {
    // Your configurations here
  }
}

Overriding (Not Recommended): You can overide InSpatial's defaults by passing your values directly inside the theme: {} attribute in your theme config - which will result in InSpatial's defaults being overridden.

theme: {
  // Your configurations here
}

Note: You probably don't want to override the theme seeing as this particular config is what makes InSpatial apps look the way they do! However if you find yourself doing this, you might want to consider removing the InSpatial Tailwind Config package and only using it as a guide to build your own.

Dependencies

  • InSpatial Tailwind Config is built on top of Tailwind CSS, so all the Tailwind CSS documentation and guides apply.
  • InSpatial Tailwind Config is built with Tailwind CSS Typography Plugin, so all the Tailwind CSS Typography documentation and guides apply.
  • InSpatial Tailwind Config is built with Tailwind CSS 3D Transforms Plugin, so all the Tailwind CSS 3D Transforms documentation and guides apply.

🎭 What's Included?

  • A brand new color palette optimized for spatial interfaces
  • InSpatial's Typography scales, a collection of 70+ premium Kit fonts, and font weights, line heights and letterspacing presets for seamless readability across devices
  • Iconography system with 10000+ icons optimized for spatial interfaces powered by InSpatial Kit Icons and a myriad of third party icon libraries.
  • Spacing and sizing utilities tailored for all spatial environments
  • Responsive breakpoints for spatial/window-first design
  • Custom cursors
  • Border and Corner radius utilities optimized for spatial interfaces
  • Adaptive effects, shadows and opacity utilities for depth perception.
  • Extended Height and Width utilities
  • Custom Animation, Keyframes and transition presets for smooth spatial interactions

🛠 Customization

While @inspatial/tailwind-config provides a solid foundation, you can always extend or override any part of the configuration to suit your project's specific needs.

🚀 Getting Started

To begin your journey with InSpatial Core, visit our comprehensive documentation at inspatial.dev.


🤝 Contributing

We welcome contributions from the community! Please read our Contributing Guidelines to get started.

🚀 Release Channels

Choose the release channel that best fits your needs:

| Channel | Description | Installation | | -------------- | ------------------------------------- | ------------------------------------- | | 🟢 Stable | Production-ready release | npm install @inspatial/core | | 🟡 Preview | Usable early access | npm install @inspatial/core@preview | | 🔴 Canary | Latest features, potentially unstable | npm install @inspatial/core@canary |


📄 License

InSpatial Core is released under the Apache 2.0 License. See the LICENSE file for details.