Skip to content

Perform ring animation using only Tailwind? #3641

Discussion options

You must be logged in to vote

It is actually possible with only Tailwind:

import React from 'react'
import { observer } from 'mobx-react'
import clsx from 'clsx'

import { Divider, ShiftBy } from '@/components/ui/index'
import { useFrameItStore } from '@/store/index'

import type { SidebarTheme as SidebarThemeType, AppTheme as AppThemeType } from '@/types/index'

export const SidebarTheme = observer(() => {
	const {
		theme: { sidebar },
		updateTheme,
	} = useFrameItStore()

	const setSidebarTheme = (sidebar: SidebarThemeType) => {
		updateTheme({ sidebar })
	}

	return (
		<>
			<div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
				<ShiftBy x={-4} y={0}>
					<div className="mt-4">
						<h4 className="…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by deadcoder0904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant