Conventional hyperspectral cameras cascade lenses and spectrometers to acquire the spectral datacube, which forms the fundamental framework for hyperspectral imaging. However, this cascading framework involves tradeoffs among spectral and imaging performances when the system is driven toward miniaturization. Here, we propose a spectral singlet lens that unifies optical imaging and computational spectrometry functions, enabling the creation of minimalist, miniaturized and high-performance hyperspectral cameras. As a paradigm, we capitalize on planar liquid crystal optics to implement the proposed framework, with each liquid-crystal unit cell acting as both phase modulator and electrically tunable spectral filter. Experiments with various targets show that the resulting millimeter-scale hyperspectral camera exhibits both high spectral fidelity ( > 95%) and high spatial resolutions ( ~1.7 times the diffraction limit). The proposed “two-in-one” framework can resolve the conflicts between spectral and imaging resolutions, which paves a practical pathway for advancing hyperspectral imaging systems toward miniaturization and portable applications.